AGX Dynamics  2.35.0.1
agxQt::ClipPlaneController Class Reference

Class that is used to manipulate the clip plane in the scene. More...

#include <QtOSGUtils.h>

+ Inheritance diagram for agxQt::ClipPlaneController:

Public Member Functions

 ClipPlaneController (agxOSG::ClipPlane *clipPlane)
 Constructor. More...
 
void decrementClipPlane ()
 Decrements the Near plane of the scene in the coupled agxViewer. More...
 
bool getEnable () const
 
bool getEnableRendering () const
 
agx::Real getIncrement () const
 
agx::Vec3 getPosition () const
 
agx::Quat getRotation () const
 
void incrementClipPlane ()
 Increments the Near plane of the scene in the coupled agxViewer. More...
 
void setEnable (bool enable)
 
void setEnableRendering (bool enable)
 
void setIncrement (agx::Real increment)
 
void setPosition (agx::Vec3 position)
 
void setRotation (const agx::Quat &quat)
 
- 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...
 

Public Attributes

const agx::Vec3 BASE_NORMAL = agx::Vec3(0, 1, 0)
 

Protected Member Functions

virtual ~ClipPlaneController ()
 Destructor. More...
 
void updateClipPlaneFromIncrement (agx::Real increment)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

agxOSG::ClipPlane * m_clipPlane
 
bool m_enableRendering
 
agx::Real m_increment
 
agx::Quat m_rotation
 
- 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 clip plane in the scene.

Definition at line 60 of file QtOSGUtils.h.

Constructor & Destructor Documentation

◆ ClipPlaneController()

agxQt::ClipPlaneController::ClipPlaneController ( agxOSG::ClipPlane *  clipPlane)

Constructor.

◆ ~ClipPlaneController()

virtual agxQt::ClipPlaneController::~ClipPlaneController ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ decrementClipPlane()

void agxQt::ClipPlaneController::decrementClipPlane ( )

Decrements the Near plane of the scene in the coupled agxViewer.

◆ getEnable()

bool agxQt::ClipPlaneController::getEnable ( ) const

◆ getEnableRendering()

bool agxQt::ClipPlaneController::getEnableRendering ( ) const

◆ getIncrement()

agx::Real agxQt::ClipPlaneController::getIncrement ( ) const

◆ getPosition()

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

◆ getRotation()

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

◆ incrementClipPlane()

void agxQt::ClipPlaneController::incrementClipPlane ( )

Increments the Near plane of the scene in the coupled agxViewer.

◆ setEnable()

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

◆ setEnableRendering()

void agxQt::ClipPlaneController::setEnableRendering ( bool  enable)

◆ setIncrement()

void agxQt::ClipPlaneController::setIncrement ( agx::Real  increment)

◆ setPosition()

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

◆ setRotation()

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

◆ updateClipPlaneFromIncrement()

void agxQt::ClipPlaneController::updateClipPlaneFromIncrement ( agx::Real  increment)
protected

Member Data Documentation

◆ BASE_NORMAL

const agx::Vec3 agxQt::ClipPlaneController::BASE_NORMAL = agx::Vec3(0, 1, 0)

Definition at line 63 of file QtOSGUtils.h.

◆ m_clipPlane

agxOSG::ClipPlane* agxQt::ClipPlaneController::m_clipPlane
protected

Definition at line 105 of file QtOSGUtils.h.

◆ m_enableRendering

bool agxQt::ClipPlaneController::m_enableRendering
protected

Definition at line 108 of file QtOSGUtils.h.

◆ m_increment

agx::Real agxQt::ClipPlaneController::m_increment
protected

Definition at line 107 of file QtOSGUtils.h.

◆ m_rotation

agx::Quat agxQt::ClipPlaneController::m_rotation
protected

Definition at line 106 of file QtOSGUtils.h.


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