Basic Image AlgorithmS Library
2.8.0
|
class for camera movement in autopilot mode. More...
#include <GLviewer/Controller/AutoControl.hh>
Classes | |
struct | CameraPose |
Public Member Functions | |
void | Activate () |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
void | AddPose (BIAS::Vector3< double > C, BIAS::Vector3< double > PoI, BIAS::Vector3< double > up) |
Adds a defined pose to the autopilot at the end of PoseList_ F1. More... | |
void | AddPose () |
Adds the current pose of ControldObject to the autopilot at the end of PoseList_ F1. More... | |
AutoControl () | |
void | Deactivate () |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
void | DeleteAll () |
Deletes all poses in PoseList_ and resets autopilot. More... | |
void | DeleteLast () |
Deletes the last added pose and resets the autopilot F4. More... | |
void | DeletePose (int pose) |
Deletes the defined pose and resets the autopilot F4. More... | |
virtual bool | FinishedDraw () |
this function is called by RenderContextBase when drawing is done. More... | |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
virtual BIAS::GLProjectionParametersInterface * | GetGLProjectionParametersInterface () |
Get the camera projection parameters. More... | |
virtual std::string | GetName () |
Get the name of the controller. More... | |
unsigned int | GetNumberOfSteps () |
unsigned int | GetNumSectors () |
unsigned int | GetSector () |
unsigned int | GetStep () |
int | GoTo (unsigned int step, unsigned int sector) |
Goes to the defined step and sector. More... | |
int | GoToPose (int pose) |
Goes to the defined pose. More... | |
void | Init () |
Initialisizes the autopilot. More... | |
bool | IsActive () |
bool | IsInitialized () |
virtual bool | LeftAndRightMouseMoved (int, int, int, int) |
react to mouse movement while right and middle button held down overwrite in derived class of desired More... | |
virtual bool | LeftMouseDoubleClicked (int, int, int m) |
react to left mouse double click overwrite in derived class of desired More... | |
virtual bool | LeftMouseDown (int, int) |
react to left mouse button down event overwrite in derived class of desired More... | |
virtual bool | LeftMouseMoved (int, int, int, int) |
react to mouse movement while left button held down overwrite in derived class of desired More... | |
virtual bool | LeftMouseSingleClicked (int, int) |
react to left mouse single click overwrite in derived class of desired More... | |
virtual bool | LeftMouseUp (int, int) |
react to left mouse button up event overwrite in derived class of desired More... | |
int | LoadFromFile (const std::string &file) |
virtual bool | MiddleMouseDown (int, int) |
react to middle mouse button down event overwrite in derived class of desired More... | |
virtual bool | MiddleMouseMoved (int, int, int, int) |
react to mouse movement while middle button held down overwrite in derived class of desired More... | |
virtual bool | MiddleMouseUp (int, int) |
react to middle mouse button up event overwrite in derived class of desired More... | |
virtual bool | MouseLeftWindow () |
react to mouse leaving the window overwrite in derived class of desired More... | |
virtual bool | MouseMoved (int, int) |
react to mouse movement overwrite in derived class of desired More... | |
virtual bool | MouseWheelUsed (double stepsize) |
react to mouse wheel usage overwrite in derived class of desired More... | |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
int | NextStep () |
Goes to the next calculated pose. More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | Rewind () |
Sets the autopilot to start point. More... | |
virtual bool | RightMouseDoubleClicked (int, int) |
react to right mouse double click overwrite in derived class of desired More... | |
virtual bool | RightMouseDown (int, int) |
react to right mouse button down event overwrite in derived class of desired More... | |
virtual bool | RightMouseMoved (int, int, int, int) |
react to mouse movement while right button held down overwrite in derived class of desired More... | |
virtual bool | RightMouseSingleClicked (int, int) |
react to right mouse single click event overwrite in derived class of desired More... | |
virtual bool | RightMouseUp (int, int) |
react to right mouse button up event overwrite in derived class of desired More... | |
int | SaveToFile (const std::string &file) |
void | SetContext (RenderContextBase *context) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
virtual void | SetGLProjectionParametersInterface (BIAS::GLProjectionParametersInterface *interface_) |
Set the camera projection parameters. More... | |
virtual void | SetName (std::string name) |
Set the name of the controller. More... | |
void | SetNumberOfSteps (unsigned int n) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
bool | SpecialKeyPressed (int key) |
Handles special key events. More... | |
virtual bool | SpecialKeyUp (int) |
react to press of special keys such as F1-F12, ... More... | |
virtual bool | StandardKeyPressed (unsigned char, int, int) |
react to press of ascii-coded charakter plus pointer position More... | |
virtual bool | StandardKeyUp (unsigned char, int, int) |
react to press of ascii-coded charakter plus pointer position More... | |
bool | TimerExpired () |
this function is called by RenderContextBase when timer is expired Overwrite and implement to do some timer dependend processing More... | |
virtual bool | WindowReshape (int, int) |
this function is called by RenderContextBase if the window is reshaped. More... | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
bool | Active_ |
RenderContextBase * | Context_ |
BIAS::GLProjectionParametersInterface * | controlledObject_ |
the camera which is controlled by this controller More... | |
int | InitializedSector_ |
std::string | listenerName_ |
name of listener/controller More... | |
unsigned int | NumberOfSteps_ |
std::vector< CameraPose > | PoseList_ |
unsigned int | Sector_ |
unsigned int | Step_ |
double | StepSizeC_ |
double | StepSizePoI_ |
double | StepSizeUp_ |
BIAS::Vector3< double > | VecC_ |
BIAS::Vector3< double > | VecPoI_ |
BIAS::Vector3< double > | VecUp_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
class for camera movement in autopilot mode.
Definition at line 17 of file AutoControl.hh.
AutoControl::AutoControl | ( | ) |
Definition at line 12 of file AutoControl.cpp.
|
inline |
Definition at line 95 of file AutoControl.hh.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
void AutoControl::AddPose | ( | BIAS::Vector3< double > | C, |
BIAS::Vector3< double > | PoI, | ||
BIAS::Vector3< double > | up | ||
) |
Adds a defined pose to the autopilot at the end of PoseList_ F1.
Definition at line 144 of file AutoControl.cpp.
References BIAS::AutoControl::CameraPose::C, BIAS::AutoControl::CameraPose::PoI, and BIAS::AutoControl::CameraPose::up.
void AutoControl::AddPose | ( | ) |
Adds the current pose of ControldObject to the autopilot at the end of PoseList_ F1.
Definition at line 164 of file AutoControl.cpp.
|
inlineprotectedinherited |
|
inline |
Definition at line 96 of file AutoControl.hh.
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
void AutoControl::DeleteAll | ( | ) |
Deletes all poses in PoseList_ and resets autopilot.
Definition at line 219 of file AutoControl.cpp.
void AutoControl::DeleteLast | ( | ) |
Deletes the last added pose and resets the autopilot F4.
Definition at line 186 of file AutoControl.cpp.
void AutoControl::DeletePose | ( | int | pose | ) |
Deletes the defined pose and resets the autopilot F4.
Definition at line 200 of file AutoControl.cpp.
|
inlinevirtualinherited |
this function is called by RenderContextBase when drawing is done.
Overwrite and implement to do some processing after drawing
Definition at line 193 of file ControlInterface.hh.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinevirtualinherited |
Get the camera projection parameters.
Can be of type GLProjection or any from GLProjectionParametersBase derived class
Definition at line 207 of file ControlInterface.hh.
|
inlinevirtualinherited |
Get the name of the controller.
Definition at line 70 of file ControlInterface.hh.
|
inline |
Definition at line 92 of file AutoControl.hh.
|
inline |
Definition at line 59 of file AutoControl.hh.
|
inline |
Definition at line 58 of file AutoControl.hh.
|
inline |
Definition at line 56 of file AutoControl.hh.
int AutoControl::GoTo | ( | unsigned int | step, |
unsigned int | sector | ||
) |
Goes to the defined step and sector.
returns 0 for sucess, -1 if step or sector exceeds max
Definition at line 76 of file AutoControl.cpp.
References BIAS::Vector3< T >::Normalize().
int AutoControl::GoToPose | ( | int | pose | ) |
Goes to the defined pose.
returns 0 for sucess, -1 if step or sector exceeds max
Definition at line 127 of file AutoControl.cpp.
void AutoControl::Init | ( | ) |
Initialisizes the autopilot.
Definition at line 21 of file AutoControl.cpp.
References BIAS::Vector3< T >::Length().
|
inline |
Definition at line 97 of file AutoControl.hh.
|
inline |
Definition at line 98 of file AutoControl.hh.
|
inlinevirtualinherited |
react to mouse movement while right and middle button held down overwrite in derived class of desired
Reimplemented in BIAS::OnlyRotationControl, BIAS::TrackballControl, BIAS::TrackballTransControl, and BIAS::FlyControl.
Definition at line 140 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::LeftAndRightMouseMoved().
|
inlinevirtualinherited |
react to left mouse double click overwrite in derived class of desired
Reimplemented in BIAS::TrackballControl, and BIAS::DistanceMeasureControl.
Definition at line 84 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::LeftMouseDoubleClicked().
|
inlinevirtualinherited |
react to left mouse button down event overwrite in derived class of desired
Definition at line 99 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::LeftMouseDown().
|
inlinevirtualinherited |
react to mouse movement while left button held down overwrite in derived class of desired
Reimplemented in BIAS::TrackballControl, BIAS::TrackballTransControl, BIAS::FlyControl, and BIAS::OnlyRotationControl.
Definition at line 94 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::LeftMouseMoved().
|
inlinevirtualinherited |
react to left mouse single click overwrite in derived class of desired
Definition at line 89 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::LeftMouseSingleClicked().
|
inlinevirtualinherited |
react to left mouse button up event overwrite in derived class of desired
Definition at line 104 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::LeftMouseUp().
int AutoControl::LoadFromFile | ( | const std::string & | file | ) |
Definition at line 282 of file AutoControl.cpp.
|
inlinevirtualinherited |
react to middle mouse button down event overwrite in derived class of desired
Definition at line 145 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::MiddleMouseDown().
|
inlinevirtualinherited |
react to mouse movement while middle button held down overwrite in derived class of desired
Reimplemented in BIAS::TrackballControl, BIAS::TrackballTransControl, BIAS::OnlyRotationControl, and BIAS::FlyControl.
Definition at line 135 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::MiddleMouseMoved().
|
inlinevirtualinherited |
react to middle mouse button up event overwrite in derived class of desired
Definition at line 150 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::MiddleMouseUp().
|
inlinevirtualinherited |
react to mouse leaving the window overwrite in derived class of desired
Definition at line 160 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::MouseLeftWindow().
|
inlinevirtualinherited |
react to mouse movement overwrite in derived class of desired
Reimplemented in BIAS::DistanceMeasureControl.
Definition at line 155 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::MouseMoved().
|
inlinevirtualinherited |
react to mouse wheel usage overwrite in derived class of desired
Reimplemented in BIAS::TrackballControl, and BIAS::TrackballTransControl.
Definition at line 79 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::MouseWheelUsed().
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
int AutoControl::NextStep | ( | ) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
void AutoControl::Rewind | ( | ) |
|
inlinevirtualinherited |
react to right mouse double click overwrite in derived class of desired
Reimplemented in BIAS::OnlyRotationControl.
Definition at line 115 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::RightMouseDoubleClicked().
|
inlinevirtualinherited |
react to right mouse button down event overwrite in derived class of desired
Definition at line 125 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::RightMouseDown().
|
inlinevirtualinherited |
react to mouse movement while right button held down overwrite in derived class of desired
Reimplemented in BIAS::FlyControl, BIAS::TrackballTransControl, BIAS::TrackballControl, and BIAS::OnlyRotationControl.
Definition at line 120 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::RightMouseMoved().
|
inlinevirtualinherited |
react to right mouse single click event overwrite in derived class of desired
Definition at line 110 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::RightMouseSingleClicked().
|
inlinevirtualinherited |
react to right mouse button up event overwrite in derived class of desired
Definition at line 130 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::RightMouseUp().
int AutoControl::SaveToFile | ( | const std::string & | file | ) |
Definition at line 259 of file AutoControl.cpp.
void AutoControl::SetContext | ( | RenderContextBase * | context | ) |
Definition at line 254 of file AutoControl.cpp.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinevirtualinherited |
Set the camera projection parameters.
Can be of type GLProjection or any from GLProjectionParametersBase derived class
Reimplemented in BIAS::TrackballControl.
Definition at line 198 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::SetControl(), BIAS::TrackballControl::SetGLProjectionParametersInterface(), and BIAS::RenderContextBase::SetGLProjectionParametersInterface().
|
inlinevirtualinherited |
Set the name of the controller.
Definition at line 74 of file ControlInterface.hh.
|
inline |
Definition at line 93 of file AutoControl.hh.
|
inlineinherited |
|
virtual |
Handles special key events.
Reimplemented from BIAS::ControlInterface.
Definition at line 225 of file AutoControl.cpp.
|
inlinevirtualinherited |
react to press of special keys such as F1-F12, ...
overwrite in derived class of desired
Definition at line 170 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::SpecialKeyUp().
|
inlinevirtualinherited |
react to press of ascii-coded charakter plus pointer position
Reimplemented in BIAS::biasGLviewerGLUT.
Definition at line 174 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::StandardKeyPressed().
|
inlinevirtualinherited |
react to press of ascii-coded charakter plus pointer position
Definition at line 178 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::StandardKeyUp().
|
virtual |
this function is called by RenderContextBase when timer is expired Overwrite and implement to do some timer dependend processing
Reimplemented from BIAS::ControlInterface.
Definition at line 309 of file AutoControl.cpp.
|
inlinevirtualinherited |
this function is called by RenderContextBase if the window is reshaped.
Overwrite and implement to do some processing upon reshape
Definition at line 188 of file ControlInterface.hh.
Referenced by BIAS::RenderContextBase::WindowReshape().
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 124 of file AutoControl.hh.
|
protected |
Definition at line 110 of file AutoControl.hh.
|
protectedinherited |
the camera which is controlled by this controller
Definition at line 214 of file ControlInterface.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 122 of file AutoControl.hh.
|
protectedinherited |
name of listener/controller
Definition at line 208 of file ControlInterface.hh.
|
protected |
Definition at line 119 of file AutoControl.hh.
|
protected |
Definition at line 109 of file AutoControl.hh.
|
protected |
Definition at line 121 of file AutoControl.hh.
|
protected |
Definition at line 120 of file AutoControl.hh.
|
protected |
Definition at line 115 of file AutoControl.hh.
|
protected |
Definition at line 117 of file AutoControl.hh.
|
protected |
Definition at line 116 of file AutoControl.hh.
|
protected |
Definition at line 112 of file AutoControl.hh.
|
protected |
Definition at line 114 of file AutoControl.hh.
|
protected |
Definition at line 113 of file AutoControl.hh.