RenderTools::AbstractCurve Class Reference

class AbstractCurve is the interface to a Curve<T> More...

#include <AbstractCurve.h>

Inheritance diagram for RenderTools::AbstractCurve:

RenderTools::Rendernode RenderTools::UpdateInterface RenderTools::BindingInterface RenderTools::RenderInterface RenderTools::RelationalNode RenderTools::TransformNode RenderTools::AbstractPropertyContainer RenderTools::ContainerProperty RenderTools::AbstractProperty RenderTools::InitializeInterface RenderTools::Curve< T >

List of all members.

Public Types

enum  InterpolationType { LINEAR, HERMITE }

Public Member Functions

 AbstractCurve (void)
virtual ~AbstractCurve (void)
virtual void createProperties (void)
virtual const string getTypeName (bool ofComponent=false) const
virtual void onInitialize (void)
virtual void clear (void)=0
void setInterpolationType (InterpolationType t, bool send=true)
void setSubdivision (unsigned int s, bool send=true)
void setClosed (bool state, bool send=true)
InterpolationType getInterpolationType (void) const
unsigned int getSubdivision (void) const
bool getClosed (void) const

Static Public Member Functions

static PropertyPtr create (const XMLNodePtr &xml=XMLNodePtr())

Protected Attributes

string m_type
InterpolationType m_interpolationType
unsigned int m_subdiv
bool m_closed


Detailed Description

class AbstractCurve is the interface to a Curve<T>

Definition at line 13 of file AbstractCurve.h.


Member Enumeration Documentation

Enumerator:
LINEAR 
HERMITE 

Definition at line 16 of file AbstractCurve.h.


Constructor & Destructor Documentation

RenderTools::AbstractCurve::AbstractCurve ( void   ) 

Definition at line 7 of file AbstractCurve.cpp.

RenderTools::AbstractCurve::~AbstractCurve ( void   )  [virtual]

Definition at line 13 of file AbstractCurve.cpp.


Member Function Documentation

virtual void RenderTools::AbstractCurve::clear ( void   )  [pure virtual]

Reimplemented from RenderTools::AbstractProperty.

Implemented in RenderTools::Curve< T >.

PropertyPtr RenderTools::AbstractCurve::create ( const XMLNodePtr xml = XMLNodePtr()  )  [static]

Reimplemented from RenderTools::Rendernode.

Reimplemented in RenderTools::Curve< T >.

Definition at line 17 of file AbstractCurve.cpp.

void RenderTools::AbstractCurve::createProperties ( void   )  [virtual]

Reimplemented from RenderTools::Rendernode.

Reimplemented in RenderTools::Curve< T >.

Definition at line 53 of file AbstractCurve.cpp.

bool RenderTools::AbstractCurve::getClosed ( void   )  const [inline]

Definition at line 35 of file AbstractCurve.h.

InterpolationType RenderTools::AbstractCurve::getInterpolationType ( void   )  const [inline]

Definition at line 33 of file AbstractCurve.h.

unsigned int RenderTools::AbstractCurve::getSubdivision ( void   )  const [inline]

Definition at line 34 of file AbstractCurve.h.

const string RenderTools::AbstractCurve::getTypeName ( bool  ofComponent = false  )  const [virtual]

Reimplemented from RenderTools::Rendernode.

Reimplemented in RenderTools::Curve< T >.

Definition at line 49 of file AbstractCurve.cpp.

void RenderTools::AbstractCurve::onInitialize ( void   )  [virtual]

call the polymorphic update function

Reimplemented from RenderTools::Rendernode.

Definition at line 61 of file AbstractCurve.cpp.

void RenderTools::AbstractCurve::setClosed ( bool  state,
bool  send = true 
)

propertyChanged()

Definition at line 76 of file AbstractCurve.cpp.

void RenderTools::AbstractCurve::setInterpolationType ( InterpolationType  t,
bool  send = true 
)

propertyChanged()

Definition at line 66 of file AbstractCurve.cpp.

void RenderTools::AbstractCurve::setSubdivision ( unsigned int  s,
bool  send = true 
)

propertyChanged()

Definition at line 71 of file AbstractCurve.cpp.


Member Data Documentation

Definition at line 40 of file AbstractCurve.h.

Definition at line 38 of file AbstractCurve.h.

unsigned int RenderTools::AbstractCurve::m_subdiv [protected]

Definition at line 39 of file AbstractCurve.h.

Definition at line 37 of file AbstractCurve.h.


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

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8