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

mrpt::opengl::CSimpleLine Class Reference


Detailed Description

A line segment.

See also:
opengl::COpenGLScene

Definition at line 45 of file CSimpleLine.h.

#include <mrpt/opengl/CSimpleLine.h>

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

List of all members.

Public Member Functions

void setLineWidth (float w)
float getLineWidth () const
void setLineCoords (float x0, float y0, float z0, float x1, float y1, float z1)
void getLineCoords (float &x0, float &y0, float &z0, float &x1, float &y1, float &z1) const
void render_dl () const
 Render.

Static Public Member Functions

static CSimpleLinePtr Create (float x0, float y0, float z0, float x1, float y1, float z1, float lineWidth=1)
 Class factory.

Protected Attributes

float m_x0
float m_y0
float m_z0
float m_x1
float m_y1
float m_z1
float m_lineWidth

Private Member Functions

 CSimpleLine (float x0=0, float y0=0, float z0=0, float x1=0, float y1=0, float z1=0, float lineWidth=1)
 Constructor.
virtual ~CSimpleLine ()
 Private, virtual destructor: only can be deleted from smart pointers.

RTTI stuff

typedef CSimpleLinePtr SmartPtr
static mrpt::utils::CLASSINIT _init_CSimpleLine
static mrpt::utils::TRuntimeClassId classCSimpleLine
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 CSimpleLinePtr Create ()

Member Typedef Documentation

A typedef for the associated smart pointer

Definition at line 47 of file CSimpleLine.h.


Constructor & Destructor Documentation

mrpt::opengl::CSimpleLine::CSimpleLine ( float  x0 = 0,
float  y0 = 0,
float  z0 = 0,
float  x1 = 0,
float  y1 = 0,
float  z1 = 0,
float  lineWidth = 1 
) [inline, private]

Constructor.

Definition at line 85 of file CSimpleLine.h.

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

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

Definition at line 95 of file CSimpleLine.h.


Member Function Documentation

static const mrpt::utils::TRuntimeClassId* mrpt::opengl::CSimpleLine::_GetBaseClass (  ) [static, protected]
static CSimpleLinePtr mrpt::opengl::CSimpleLine::Create (  ) [static]
static CSimpleLinePtr mrpt::opengl::CSimpleLine::Create ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
float  lineWidth = 1 
) [inline, static]

Class factory.

Definition at line 75 of file CSimpleLine.h.

References mrpt::opengl::CSimpleLine.

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

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

Implements mrpt::utils::CObject.

void mrpt::opengl::CSimpleLine::getLineCoords ( float &  x0,
float &  y0,
float &  z0,
float &  x1,
float &  y1,
float &  z1 
) const [inline]

Definition at line 64 of file CSimpleLine.h.

float mrpt::opengl::CSimpleLine::getLineWidth (  ) const [inline]

Definition at line 55 of file CSimpleLine.h.

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

Returns information about the class of an object in runtime.

Reimplemented from mrpt::opengl::CRenderizableDisplayList.

void mrpt::opengl::CSimpleLine::render_dl (  ) const [virtual]
void mrpt::opengl::CSimpleLine::setLineCoords ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1 
) [inline]
void mrpt::opengl::CSimpleLine::setLineWidth ( float  w ) [inline]

Member Data Documentation

Definition at line 47 of file CSimpleLine.h.

Definition at line 47 of file CSimpleLine.h.

Definition at line 47 of file CSimpleLine.h.

Definition at line 52 of file CSimpleLine.h.

Definition at line 50 of file CSimpleLine.h.

Definition at line 51 of file CSimpleLine.h.

Definition at line 50 of file CSimpleLine.h.

Definition at line 51 of file CSimpleLine.h.

Definition at line 50 of file CSimpleLine.h.

Definition at line 51 of file CSimpleLine.h.




Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011