proland::EditGraphOrthoLayer::VertexData Struct Reference

Data for a given Vertex. More...

#include <EditGraphOrthoLayer.h>

List of all members.

Public Member Functions

 VertexData (Curve *curve, EditGraphOrthoLayer *e, int rank)
 Creates a new TWVertexData.
void movePoint (double nx, double ny)
 Moves the vertex to the given coordinates.
void setS (float ns)
 Changes the S coordinate of the Vertex.
void setControlPoint (bool b)
 Changes the state of the Vertex.

Public Attributes

int i
 Index of this Data in EditGraphOrthoLayer::selectedCurveData.
Curve * c
 The curve containing the Vertex associated to this data.
EditGraphOrthoLayereditor
 The EditGraphOrthoLayer containing this data.

Detailed Description

Data for a given Vertex.

Used to pass arguments in TweakBar Callbacks (Creates a link between edited Data and the TweakBar).


Constructor & Destructor Documentation

proland::EditGraphOrthoLayer::VertexData::VertexData ( Curve *  curve,
EditGraphOrthoLayer e,
int  rank 
) [inline]

Creates a new TWVertexData.

Parameters:
curve the curve containing the Vertex associated to this data.
e the EditGraphOrthoLayer containing this data.
rank index of this Data in EditGraphOrthoLayer::selectedCurveData.

Member Function Documentation

void proland::EditGraphOrthoLayer::VertexData::movePoint ( double  nx,
double  ny 
) [inline]

Moves the vertex to the given coordinates.

Parameters:
nx new X coordinate.
ny new Y coordinate.
void proland::EditGraphOrthoLayer::VertexData::setControlPoint ( bool  b  )  [inline]

Changes the state of the Vertex.

Parameters:
b whether to set this Vertex as a control point or not.
void proland::EditGraphOrthoLayer::VertexData::setS ( float  ns  )  [inline]

Changes the S coordinate of the Vertex.

Parameters:
ns new S coordinate.

Member Data Documentation

The curve containing the Vertex associated to this data.

The EditGraphOrthoLayer containing this data.

Index of this Data in EditGraphOrthoLayer::selectedCurveData.


Generated on Sat May 12 09:43:14 2012 for proland by  doxygen 1.6.1