Data for a given Vertex. More...
#include <EditGraphOrthoLayer.h>
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. | |
EditGraphOrthoLayer * | editor |
The EditGraphOrthoLayer containing this data. |
Data for a given Vertex.
Used to pass arguments in TweakBar Callbacks (Creates a link between edited Data and the TweakBar).
proland::EditGraphOrthoLayer::VertexData::VertexData | ( | Curve * | curve, | |
EditGraphOrthoLayer * | e, | |||
int | rank | |||
) | [inline] |
Creates a new TWVertexData.
curve | the curve containing the Vertex associated to this data. | |
e | the EditGraphOrthoLayer containing this data. | |
rank | index of this Data in EditGraphOrthoLayer::selectedCurveData. |
void proland::EditGraphOrthoLayer::VertexData::movePoint | ( | double | nx, | |
double | ny | |||
) | [inline] |
Moves the vertex to the given coordinates.
nx | new X coordinate. | |
ny | new Y coordinate. |
void proland::EditGraphOrthoLayer::VertexData::setControlPoint | ( | bool | b | ) | [inline] |
Changes the state of the Vertex.
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.
ns | new S coordinate. |
The curve containing the Vertex associated to this data.
The EditGraphOrthoLayer containing this data.
Index of this Data in EditGraphOrthoLayer::selectedCurveData.