|
AGX Dynamics 2.38.0.2
|
Class that is used to manipulate the axes in the scene. More...
#include <QtOSGUtils.h>
Inheritance diagram for agxQt::MeasurementAxesController:Public Types | |
| using | AxesState = agx::BitState< State, agx::Int32 > |
| enum | State : agx::Int32 { ENABLE_RENDERING = 1 << 0 , ENABLE_AXES_SINGLE_COLOR = 1 << 1 , ENABLE_TICKS = 1 << 2 , ENABLE_TICK_TEXT = 1 << 3 , ENABLE_GRID = 1 << 4 , SHOW_AXIS_X = 1 << 5 , SHOW_AXIS_Y = 1 << 6 , SHOW_AXIS_Z = 1 << 7 , SHOW_ALL = SHOW_AXIS_X | SHOW_AXIS_Y | SHOW_AXIS_Z , DEFAULT = SHOW_ALL } |
Public Member Functions | |
| MeasurementAxesController () | |
| Constructor. | |
| agxRender::Color | getAxesSingleColor () const |
| bool | getEnable () const |
| bool | getEnableAxesSingleColor () const |
| bool | getEnableGrid () const |
| bool | getEnableTicks () const |
| bool | getEnableTicksText () const |
| agx::Real | getLineWidth () const |
| agx::UInt | getNumTicks () const |
| agx::Vec3 | getPosition () const |
| agx::Quat | getRotation () const |
| std::array< bool, 3 > | getShowAxesSettings () const |
| bool | getShowXAxis () |
| bool | getShowYAxis () |
| bool | getShowZAxis () |
| agx::Real | getSize () const |
| agxRender::Color | getTickColor () const |
| agx::Real | getTickSize () const |
| agx::Real | getTickTextSize () const |
| agx::UInt | getTickTextStride () const |
| void | setAxesSingleColor (const agxRender::Color &color) |
| void | setEnable (bool enable) |
| void | setEnableAxesSingleColor (bool enable) |
| void | setEnableGrid (bool enable) |
| void | setEnableTicks (bool enable) |
| void | setEnableTicksText (bool enable) |
| void | setLineWidth (agx::Real lineWidth) |
| void | setNumTicks (const agx::UInt numTicks) |
| void | setPosition (agx::Vec3 position) |
| void | setRotation (const agx::Quat &quat) |
| void | setShowXAxis (bool enable) |
| void | setShowYAxis (bool enable) |
| void | setShowZAxis (bool enable) |
| void | setSize (const agx::Real size) |
| void | setTickColor (const agxRender::Color &color) |
| void | setTickSize (const agx::Real tickSize) |
| void | setTickTextSize (agx::Real tickTextSize) |
| void | setTickTextStride (const agx::UInt stride) |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Protected Member Functions | |
| virtual | ~MeasurementAxesController () |
| Destructor. | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| agxRender::Color | m_axesColor |
| agx::Real | m_lineWidth |
| agx::UInt | m_numTicks |
| agx::Vec3 | m_position |
| agx::Quat | m_rotation |
| agx::Real | m_size |
| AxesState | m_state |
| agxRender::Color | m_tickColor |
| agx::Real | m_tickSize |
| agx::Real | m_tickTextSize |
| agx::UInt | m_tickTextStride |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. | |
Class that is used to manipulate the axes in the scene.
Definition at line 140 of file QtOSGUtils.h.
| using agxQt::MeasurementAxesController::AxesState = agx::BitState<State, agx::Int32> |
Definition at line 155 of file QtOSGUtils.h.
| Enumerator | |
|---|---|
| ENABLE_RENDERING | |
| ENABLE_AXES_SINGLE_COLOR | |
| ENABLE_TICKS | |
| ENABLE_TICK_TEXT | |
| ENABLE_GRID | |
| SHOW_AXIS_X | |
| SHOW_AXIS_Y | |
| SHOW_AXIS_Z | |
| SHOW_ALL | |
| DEFAULT | |
Definition at line 143 of file QtOSGUtils.h.
| agxQt::MeasurementAxesController::MeasurementAxesController | ( | ) |
Constructor.
|
protectedvirtual |
Destructor.
| agxRender::Color agxQt::MeasurementAxesController::getAxesSingleColor | ( | ) | const |
| bool agxQt::MeasurementAxesController::getEnable | ( | ) | const |
| bool agxQt::MeasurementAxesController::getEnableAxesSingleColor | ( | ) | const |
| bool agxQt::MeasurementAxesController::getEnableGrid | ( | ) | const |
| bool agxQt::MeasurementAxesController::getEnableTicks | ( | ) | const |
| bool agxQt::MeasurementAxesController::getEnableTicksText | ( | ) | const |
| agx::Real agxQt::MeasurementAxesController::getLineWidth | ( | ) | const |
| agx::UInt agxQt::MeasurementAxesController::getNumTicks | ( | ) | const |
| agx::Vec3 agxQt::MeasurementAxesController::getPosition | ( | ) | const |
| agx::Quat agxQt::MeasurementAxesController::getRotation | ( | ) | const |
| std::array< bool, 3 > agxQt::MeasurementAxesController::getShowAxesSettings | ( | ) | const |
| bool agxQt::MeasurementAxesController::getShowXAxis | ( | ) |
| bool agxQt::MeasurementAxesController::getShowYAxis | ( | ) |
| bool agxQt::MeasurementAxesController::getShowZAxis | ( | ) |
| agx::Real agxQt::MeasurementAxesController::getSize | ( | ) | const |
| agxRender::Color agxQt::MeasurementAxesController::getTickColor | ( | ) | const |
| agx::Real agxQt::MeasurementAxesController::getTickSize | ( | ) | const |
| agx::Real agxQt::MeasurementAxesController::getTickTextSize | ( | ) | const |
| agx::UInt agxQt::MeasurementAxesController::getTickTextStride | ( | ) | const |
| void agxQt::MeasurementAxesController::setAxesSingleColor | ( | const agxRender::Color & | color | ) |
| void agxQt::MeasurementAxesController::setEnable | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setEnableAxesSingleColor | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setEnableGrid | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setEnableTicks | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setEnableTicksText | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setLineWidth | ( | agx::Real | lineWidth | ) |
| void agxQt::MeasurementAxesController::setNumTicks | ( | const agx::UInt | numTicks | ) |
| void agxQt::MeasurementAxesController::setPosition | ( | agx::Vec3 | position | ) |
| void agxQt::MeasurementAxesController::setRotation | ( | const agx::Quat & | quat | ) |
| void agxQt::MeasurementAxesController::setShowXAxis | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setShowYAxis | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setShowZAxis | ( | bool | enable | ) |
| void agxQt::MeasurementAxesController::setSize | ( | const agx::Real | size | ) |
| void agxQt::MeasurementAxesController::setTickColor | ( | const agxRender::Color & | color | ) |
| void agxQt::MeasurementAxesController::setTickSize | ( | const agx::Real | tickSize | ) |
| void agxQt::MeasurementAxesController::setTickTextSize | ( | agx::Real | tickTextSize | ) |
| void agxQt::MeasurementAxesController::setTickTextStride | ( | const agx::UInt | stride | ) |
|
protected |
Definition at line 250 of file QtOSGUtils.h.
|
protected |
Definition at line 247 of file QtOSGUtils.h.
|
protected |
Definition at line 244 of file QtOSGUtils.h.
|
protected |
Definition at line 240 of file QtOSGUtils.h.
|
protected |
Definition at line 241 of file QtOSGUtils.h.
|
protected |
Definition at line 242 of file QtOSGUtils.h.
|
protected |
Definition at line 248 of file QtOSGUtils.h.
|
protected |
Definition at line 249 of file QtOSGUtils.h.
|
protected |
Definition at line 243 of file QtOSGUtils.h.
|
protected |
Definition at line 246 of file QtOSGUtils.h.
|
protected |
Definition at line 245 of file QtOSGUtils.h.