Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions

mrpt::opengl::CArrow Class Reference


Detailed Description

A 3D arrow.

See also:
opengl::COpenGLScene
mrpt::opengl::CArrow
preview_CArrow.png

Definition at line 52 of file CArrow.h.

#include <mrpt/opengl/CArrow.h>

Inheritance diagram for mrpt::opengl::CArrow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void setArrowEnds (float x0, float y0, float z0, float x1, float y1, float z1)
void setHeadRatio (float rat)
void setSmallRadius (float rat)
void setLargeRadius (float rat)
void setArrowYawPitchRoll (float yaw, float pitch, float roll)
void render_dl () const
 Render.

Static Public Member Functions

static CArrowPtr Create (float x0, float y0, float z0, float x1, float y1, float z1, float headRatio=0.2f, float smallRadius=0.05f, float largeRadius=0.2f, float arrow_roll=-1.0f, float arrow_pitch=-1.0f, float arrow_yaw=-1.0f)
 Class factory.

Protected Attributes

float m_x0
float m_y0
float m_z0
float m_x1
float m_y1
float m_z1
float m_headRatio
float m_smallRadius
float m_largeRadius
float m_arrow_roll
float m_arrow_pitch
float m_arrow_yaw

Private Member Functions

 CArrow (float x0=0, float y0=0, float z0=0, float x1=1, float y1=1, float z1=1, float headRatio=0.2f, float smallRadius=0.05f, float largeRadius=0.2f, float arrow_roll=-1.0f, float arrow_pitch=-1.0f, float arrow_yaw=-1.0f)
 Constructor.
virtual ~CArrow ()
 Private, virtual destructor: only can be deleted from smart pointers.

RTTI stuff

typedef CArrowPtr SmartPtr
static mrpt::utils::CLASSINIT _init_CArrow
static mrpt::utils::TRuntimeClassId classCArrow
static const
mrpt::utils::TRuntimeClassId
classinfo
static const
mrpt::utils::TRuntimeClassId
_GetBaseClass ()
virtual const
mrpt::utils::TRuntimeClassId
GetRuntimeClass () const
 Returns information about the class of an object in runtime.
virtual mrpt::utils::CObjectduplicate () const
 Returns a copy of the object, indepently of its class.
static mrpt::utils::CObjectCreateObject ()
static CArrowPtr Create ()

Member Typedef Documentation

A typedef for the associated smart pointer

Definition at line 54 of file CArrow.h.


Constructor & Destructor Documentation

mrpt::opengl::CArrow::CArrow ( float  x0 = 0,
float  y0 = 0,
float  z0 = 0,
float  x1 = 1,
float  y1 = 1,
float  z1 = 1,
float  headRatio = 0.2f,
float  smallRadius = 0.05f,
float  largeRadius = 0.2f,
float  arrow_roll = -1.0f,
float  arrow_pitch = -1.0f,
float  arrow_yaw = -1.0f 
) [inline, private]

Constructor.

Definition at line 104 of file CArrow.h.

virtual mrpt::opengl::CArrow::~CArrow ( ) [inline, private, virtual]

Private, virtual destructor: only can be deleted from smart pointers.

Definition at line 130 of file CArrow.h.


Member Function Documentation

static const mrpt::utils::TRuntimeClassId* mrpt::opengl::CArrow::_GetBaseClass ( ) [static, protected]
static CArrowPtr mrpt::opengl::CArrow::Create ( ) [static]
static CArrowPtr mrpt::opengl::CArrow::Create ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
float  headRatio = 0.2f,
float  smallRadius = 0.05f,
float  largeRadius = 0.2f,
float  arrow_roll = -1.0f,
float  arrow_pitch = -1.0f,
float  arrow_yaw = -1.0f 
) [inline, static]

Class factory.

Definition at line 83 of file CArrow.h.

References mrpt::opengl::CArrow.

static mrpt::utils::CObject* mrpt::opengl::CArrow::CreateObject ( ) [static]
virtual mrpt::utils::CObject* mrpt::opengl::CArrow::duplicate ( ) const [virtual]

Returns a copy of the object, indepently of its class.

Implements mrpt::utils::CObject.

virtual const mrpt::utils::TRuntimeClassId* mrpt::opengl::CArrow::GetRuntimeClass ( ) const [virtual]

Returns information about the class of an object in runtime.

Reimplemented from mrpt::opengl::CRenderizableDisplayList.

void mrpt::opengl::CArrow::render_dl ( ) const [virtual]
void mrpt::opengl::CArrow::setArrowEnds ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1 
) [inline]

Definition at line 67 of file CArrow.h.

References mrpt::opengl::CRenderizableDisplayList::notifyChange().

void mrpt::opengl::CArrow::setArrowYawPitchRoll ( float  yaw,
float  pitch,
float  roll 
) [inline]

Definition at line 76 of file CArrow.h.

References mrpt::opengl::CRenderizableDisplayList::notifyChange().

void mrpt::opengl::CArrow::setHeadRatio ( float  rat) [inline]

Definition at line 73 of file CArrow.h.

References mrpt::opengl::CRenderizableDisplayList::notifyChange().

void mrpt::opengl::CArrow::setLargeRadius ( float  rat) [inline]

Definition at line 75 of file CArrow.h.

References mrpt::opengl::CRenderizableDisplayList::notifyChange().

void mrpt::opengl::CArrow::setSmallRadius ( float  rat) [inline]

Definition at line 74 of file CArrow.h.

References mrpt::opengl::CRenderizableDisplayList::notifyChange().


Member Data Documentation

Definition at line 54 of file CArrow.h.

Definition at line 54 of file CArrow.h.

Definition at line 54 of file CArrow.h.

Definition at line 62 of file CArrow.h.

Definition at line 61 of file CArrow.h.

Definition at line 63 of file CArrow.h.

Definition at line 58 of file CArrow.h.

Definition at line 59 of file CArrow.h.

Definition at line 59 of file CArrow.h.

float mrpt::opengl::CArrow::m_x0 [mutable, protected]

Definition at line 56 of file CArrow.h.

float mrpt::opengl::CArrow::m_x1 [mutable, protected]

Definition at line 57 of file CArrow.h.

float mrpt::opengl::CArrow::m_y0 [mutable, protected]

Definition at line 56 of file CArrow.h.

float mrpt::opengl::CArrow::m_y1 [mutable, protected]

Definition at line 57 of file CArrow.h.

float mrpt::opengl::CArrow::m_z0 [mutable, protected]

Definition at line 56 of file CArrow.h.

float mrpt::opengl::CArrow::m_z1 [mutable, protected]

Definition at line 57 of file CArrow.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011