This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofEasyCam.h
Go to the documentation of this file.
176 };
274 interaction(TransformType type, int _mouseButton, int _key = -1):mouseButton(_mouseButton), key(_key), transformType(type){}
Definition ofEvents.h:326
char getTranslationKey() const
Get the current translation key code.
Definition ofEasyCam.cpp:142
void disableMouseInput()
Disable mouse camera control.
Definition ofEasyCam.cpp:163
void setRotationSensitivity(float x, float y, float z)
Set the input sensitivity of the rotation. X and Y axes - when the value is 1.0, moving the mouse fro...
Definition ofEasyCam.cpp:204
float getDrag() const
Get the camera's drag coefficient.
Definition ofEasyCam.cpp:132
void setDrag(float drag)
Set the camera's drag coefficient.
Definition ofEasyCam.cpp:127
void setDistance(float distance)
Set the camera's distance to the target.
Definition ofEasyCam.cpp:98
bool getInertiaEnabled() const
Determine if intertia is enabled.
Definition ofEasyCam.cpp:275
virtual void onPositionChanged()
Classes extending ofNode can override this method to get notified when the position changed.
Definition ofEasyCam.cpp:514
void enableMouseMiddleButton()
Enable the mouse's middle button for camera control.
Definition ofEasyCam.cpp:217
void setTranslationKey(char key)
Set the key used to switch between camera rotation and translation.
Definition ofEasyCam.cpp:137
ofRectangle getControlArea() const
Returns the area bounds used for mouse control.
Definition ofEasyCam.cpp:355
void removeInteraction(TransformType type, int mouseButton, int key=-1)
Definition ofEasyCam.cpp:488
bool getMouseInputEnabled() const
Determine if mouse camera control is enabled.
Definition ofEasyCam.cpp:175
const ofNode & getTarget() const
Get the camera's target node reference.
Definition ofEasyCam.cpp:93
void setTranslationSensitivity(float x, float y, float z)
Set the input sensitivity of the translation.
Definition ofEasyCam.cpp:212
void enableMouseInput()
Enable mouse camera control.
Definition ofEasyCam.cpp:147
void setAutoDistance(bool bAutoDistance)
Enable or disable camera autodistance.
Definition ofEasyCam.cpp:119
void addInteraction(TransformType type, int mouseButton, int key=-1)
Definition ofEasyCam.cpp:480
float getDistance() const
Get the distance to the target.
Definition ofEasyCam.cpp:114
bool getMouseMiddleButtonEnabled() const
Determine if the middle mouse button is enabled.
Definition ofEasyCam.cpp:227
void setTarget(const glm::vec3 &target)
Set the camera's target.
Definition ofEasyCam.cpp:81
bool hasInteraction(TransformType type, int mouseButton, int key=-1)
Definition ofEasyCam.cpp:501
void disableMouseMiddleButton()
Disable the mouse's middle button for camera control.
Definition ofEasyCam.cpp:222
TransformType
Transformation types available for mouse interaction.
Definition ofEasyCam.h:170
void setControlArea(const ofRectangle &controlArea)
Definition ofEasyCam.cpp:345
Definition ofEvents.h:119
Definition ofEvent.h:411
Definition ofEvents.h:176
A generic 3d object in space with transformation (position, rotation, scale).
Definition ofNode.h:14