CurveEdit Class Reference

#include <curve.h>

Collaboration diagram for CurveEdit:
Collaboration graph
[legend]

Public Types

typedef Static< CurveEditTypeType
typedef MemberCaller
< CurveEdit,&CurveEdit::curveChanged > 
CurveChangedCaller

Public Member Functions

 CurveEdit (ControlPoints &controlPoints, const SelectionChangeCallback &selectionChanged)
template<typename Functor >
const Functor & forEachSelected (const Functor &functor)
template<typename Functor >
const Functor & forEachSelected (const Functor &functor) const
template<typename Functor >
const Functor & forEach (const Functor &functor) const
void testSelect (Selector &selector, SelectionTest &test)
bool isSelected () const
void setSelected (bool selected)
void write (const char *key, Entity &entity)
void transform (const Matrix4 &matrix)
void snapto (float snap)
void updateSelected () const
void renderComponents (Renderer &renderer, const VolumeTest &volume, const Matrix4 &localToWorld) const
void renderComponentsSelected (Renderer &renderer, const VolumeTest &volume, const Matrix4 &localToWorld) const
void curveChanged ()

Private Types

typedef Array< ObservedSelectable > Selectables

Private Attributes

SelectionChangeCallback m_selectionChanged
ControlPointsm_controlPoints
Selectables m_selectables
RenderablePointVector m_controlsRender
RenderablePointVector m_selectedRender

Detailed Description

Definition at line 191 of file curve.h.


Member Typedef Documentation

typedef MemberCaller<CurveEdit, &CurveEdit::curveChanged> CurveEdit::CurveChangedCaller

Definition at line 316 of file curve.h.

typedef Array<ObservedSelectable> CurveEdit::Selectables [private]

Definition at line 195 of file curve.h.

typedef Static<CurveEditType> CurveEdit::Type

Definition at line 202 of file curve.h.


Constructor & Destructor Documentation

CurveEdit::CurveEdit ( ControlPoints controlPoints,
const SelectionChangeCallback selectionChanged 
) [inline]

Definition at line 204 of file curve.h.


Member Function Documentation

void CurveEdit::curveChanged (  )  [inline]
template<typename Functor >
const Functor& CurveEdit::forEach ( const Functor &  functor  )  const [inline]
template<typename Functor >
const Functor& CurveEdit::forEachSelected ( const Functor &  functor  )  const [inline]
template<typename Functor >
const Functor& CurveEdit::forEachSelected ( const Functor &  functor  )  [inline]
bool CurveEdit::isSelected (  )  const [inline]
void CurveEdit::renderComponents ( Renderer renderer,
const VolumeTest volume,
const Matrix4 &  localToWorld 
) const [inline]
void CurveEdit::renderComponentsSelected ( Renderer renderer,
const VolumeTest volume,
const Matrix4 &  localToWorld 
) const [inline]
void CurveEdit::setSelected ( bool  selected  )  [inline]
void CurveEdit::snapto ( float  snap  )  [inline]

Definition at line 277 of file curve.h.

References forEachSelected().

void CurveEdit::testSelect ( Selector selector,
SelectionTest test 
) [inline]
void CurveEdit::transform ( const Matrix4 &  matrix  )  [inline]

Definition at line 273 of file curve.h.

References forEachSelected().

void CurveEdit::updateSelected (  )  const [inline]

Definition at line 282 of file curve.h.

References forEachSelected(), and m_selectedRender.

Referenced by renderComponentsSelected().

void CurveEdit::write ( const char *  key,
Entity entity 
) [inline]

Definition at line 268 of file curve.h.

References ControlPoints_write(), and m_controlPoints.


Field Documentation

Definition at line 194 of file curve.h.

Referenced by curveChanged(), forEach(), forEachSelected(), testSelect(), and write().

RenderablePointVector CurveEdit::m_controlsRender [private]

Definition at line 198 of file curve.h.

Referenced by curveChanged(), and renderComponents().

Definition at line 196 of file curve.h.

Referenced by curveChanged(), forEachSelected(), isSelected(), setSelected(), and testSelect().

RenderablePointVector CurveEdit::m_selectedRender [mutable, private]

Definition at line 199 of file curve.h.

Referenced by curveChanged(), renderComponentsSelected(), and updateSelected().

Definition at line 193 of file curve.h.

Referenced by curveChanged().


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

Generated by  doxygen 1.6.2