AGX Dynamics  2.38.0.2
agxQt::MeasurementAxesController Class Reference

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. More...
 
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. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Protected Member Functions

virtual ~MeasurementAxesController ()
 Destructor. More...
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
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. More...
 

Detailed Description

Class that is used to manipulate the axes in the scene.

Definition at line 140 of file QtOSGUtils.h.

Member Typedef Documentation

◆ AxesState

Definition at line 155 of file QtOSGUtils.h.

Member Enumeration Documentation

◆ State

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.

Constructor & Destructor Documentation

◆ MeasurementAxesController()

agxQt::MeasurementAxesController::MeasurementAxesController ( )

Constructor.

◆ ~MeasurementAxesController()

virtual agxQt::MeasurementAxesController::~MeasurementAxesController ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ getAxesSingleColor()

agxRender::Color agxQt::MeasurementAxesController::getAxesSingleColor ( ) const

◆ getEnable()

bool agxQt::MeasurementAxesController::getEnable ( ) const

◆ getEnableAxesSingleColor()

bool agxQt::MeasurementAxesController::getEnableAxesSingleColor ( ) const

◆ getEnableGrid()

bool agxQt::MeasurementAxesController::getEnableGrid ( ) const

◆ getEnableTicks()

bool agxQt::MeasurementAxesController::getEnableTicks ( ) const

◆ getEnableTicksText()

bool agxQt::MeasurementAxesController::getEnableTicksText ( ) const

◆ getLineWidth()

agx::Real agxQt::MeasurementAxesController::getLineWidth ( ) const

◆ getNumTicks()

agx::UInt agxQt::MeasurementAxesController::getNumTicks ( ) const

◆ getPosition()

agx::Vec3 agxQt::MeasurementAxesController::getPosition ( ) const

◆ getRotation()

agx::Quat agxQt::MeasurementAxesController::getRotation ( ) const

◆ getShowAxesSettings()

std::array<bool, 3> agxQt::MeasurementAxesController::getShowAxesSettings ( ) const

◆ getShowXAxis()

bool agxQt::MeasurementAxesController::getShowXAxis ( )

◆ getShowYAxis()

bool agxQt::MeasurementAxesController::getShowYAxis ( )

◆ getShowZAxis()

bool agxQt::MeasurementAxesController::getShowZAxis ( )

◆ getSize()

agx::Real agxQt::MeasurementAxesController::getSize ( ) const

◆ getTickColor()

agxRender::Color agxQt::MeasurementAxesController::getTickColor ( ) const

◆ getTickSize()

agx::Real agxQt::MeasurementAxesController::getTickSize ( ) const

◆ getTickTextSize()

agx::Real agxQt::MeasurementAxesController::getTickTextSize ( ) const

◆ getTickTextStride()

agx::UInt agxQt::MeasurementAxesController::getTickTextStride ( ) const

◆ setAxesSingleColor()

void agxQt::MeasurementAxesController::setAxesSingleColor ( const agxRender::Color &  color)

◆ setEnable()

void agxQt::MeasurementAxesController::setEnable ( bool  enable)

◆ setEnableAxesSingleColor()

void agxQt::MeasurementAxesController::setEnableAxesSingleColor ( bool  enable)

◆ setEnableGrid()

void agxQt::MeasurementAxesController::setEnableGrid ( bool  enable)

◆ setEnableTicks()

void agxQt::MeasurementAxesController::setEnableTicks ( bool  enable)

◆ setEnableTicksText()

void agxQt::MeasurementAxesController::setEnableTicksText ( bool  enable)

◆ setLineWidth()

void agxQt::MeasurementAxesController::setLineWidth ( agx::Real  lineWidth)

◆ setNumTicks()

void agxQt::MeasurementAxesController::setNumTicks ( const agx::UInt  numTicks)

◆ setPosition()

void agxQt::MeasurementAxesController::setPosition ( agx::Vec3  position)

◆ setRotation()

void agxQt::MeasurementAxesController::setRotation ( const agx::Quat &  quat)

◆ setShowXAxis()

void agxQt::MeasurementAxesController::setShowXAxis ( bool  enable)

◆ setShowYAxis()

void agxQt::MeasurementAxesController::setShowYAxis ( bool  enable)

◆ setShowZAxis()

void agxQt::MeasurementAxesController::setShowZAxis ( bool  enable)

◆ setSize()

void agxQt::MeasurementAxesController::setSize ( const agx::Real  size)

◆ setTickColor()

void agxQt::MeasurementAxesController::setTickColor ( const agxRender::Color &  color)

◆ setTickSize()

void agxQt::MeasurementAxesController::setTickSize ( const agx::Real  tickSize)

◆ setTickTextSize()

void agxQt::MeasurementAxesController::setTickTextSize ( agx::Real  tickTextSize)

◆ setTickTextStride()

void agxQt::MeasurementAxesController::setTickTextStride ( const agx::UInt  stride)

Member Data Documentation

◆ m_axesColor

agxRender::Color agxQt::MeasurementAxesController::m_axesColor
protected

Definition at line 250 of file QtOSGUtils.h.

◆ m_lineWidth

agx::Real agxQt::MeasurementAxesController::m_lineWidth
protected

Definition at line 247 of file QtOSGUtils.h.

◆ m_numTicks

agx::UInt agxQt::MeasurementAxesController::m_numTicks
protected

Definition at line 244 of file QtOSGUtils.h.

◆ m_position

agx::Vec3 agxQt::MeasurementAxesController::m_position
protected

Definition at line 240 of file QtOSGUtils.h.

◆ m_rotation

agx::Quat agxQt::MeasurementAxesController::m_rotation
protected

Definition at line 241 of file QtOSGUtils.h.

◆ m_size

agx::Real agxQt::MeasurementAxesController::m_size
protected

Definition at line 242 of file QtOSGUtils.h.

◆ m_state

AxesState agxQt::MeasurementAxesController::m_state
protected

Definition at line 248 of file QtOSGUtils.h.

◆ m_tickColor

agxRender::Color agxQt::MeasurementAxesController::m_tickColor
protected

Definition at line 249 of file QtOSGUtils.h.

◆ m_tickSize

agx::Real agxQt::MeasurementAxesController::m_tickSize
protected

Definition at line 243 of file QtOSGUtils.h.

◆ m_tickTextSize

agx::Real agxQt::MeasurementAxesController::m_tickTextSize
protected

Definition at line 246 of file QtOSGUtils.h.

◆ m_tickTextStride

agx::UInt agxQt::MeasurementAxesController::m_tickTextStride
protected

Definition at line 245 of file QtOSGUtils.h.


The documentation for this class was generated from the following file: