tlp Namespace ReferenceClasses
Typedefs
Enumerations
- enum LabelPosition {
ON_CENTER = 0,
ON_TOP = 1,
ON_BOTTOM = 2,
ON_LEFT = 3,
ON_RIGHT = 4
}
- enum SelectionFlag { SelectSimpleEntities = 1,
SelectNodes = 2,
SelectEdges = 4
}
- enum ShaderType { Vertex,
Fragment,
Geometry
}
- enum TLP_FB_TROUGHTOKENTYPE {
TLP_FB_COLOR_INFO,
TLP_FB_BEGIN_ENTITY,
TLP_FB_END_ENTITY,
TLP_FB_BEGIN_GRAPH,
TLP_FB_END_GRAPH,
TLP_FB_BEGIN_NODE,
TLP_FB_END_NODE,
TLP_FB_BEGIN_EDGE,
TLP_FB_END_EDGE
}
Functions
- void CALLBACK beginCallback (GLenum which, GLvoid *polygonData)
- void CALLBACK errorCallback (GLenum errorCode)
- void CALLBACK endCallback (GLvoid *polygonData)
- void CALLBACK vertexCallback (GLvoid *vertex, GLvoid *polygonData)
- void CALLBACK combineCallback (GLdouble coords[3], VERTEX *d[4], GLfloat w[4], VERTEX **dataOut, GLvoid *polygonData)
- TLP_GL_SCOPE void buildPascalTriangle (unsigned int n, std::vector< std::vector< double > > &pascalTriangle)
- TLP_GL_SCOPE Coord computeBezierPoint (const std::vector< Coord > &controlPoints, const float t)
- TLP_GL_SCOPE void computeBezierPoints (const std::vector< Coord > &controlPoints, std::vector< Coord > &curvePoints, const unsigned int nbCurvePoints=100)
- TLP_GL_SCOPE Coord computeCatmullRomPoint (const std::vector< Coord > &controlPoints, const float t, const bool closedCurve=false, const float alpha=0.5)
- TLP_GL_SCOPE void computeCatmullRomPoints (const std::vector< Coord > &controlPoints, std::vector< Coord > &curvePoints, const bool closedCurve=false, const unsigned int nbCurvePoints=100, const float alpha=0.5)
- TLP_GL_SCOPE Coord computeOpenUniformBsplinePoint (const std::vector< Coord > &controlPoints, const float t, const unsigned int curveDegree=3)
- TLP_GL_SCOPE void computeOpenUniformBsplinePoints (const std::vector< Coord > &controlPoints, std::vector< Coord > &curvePoints, const unsigned int curveDegree=3, const unsigned int nbCurvePoints=100)
- TLP_GL_SCOPE GpuGraph * genGpuGraph (const tlp::Graph &graph)
- TLP_GL_SCOPE GpuProperty * genGpuProperty (tlp::BooleanProperty &property, const tlp::Graph &graph, GpuValueType type=NODE_VALUES, bool outputOnly=false)
- TLP_GL_SCOPE GpuProperty * genGpuProperty (tlp::ColorProperty &property, const tlp::Graph &graph, GpuValueType type=NODE_VALUES, bool outputOnly=false)
- TLP_GL_SCOPE GpuProperty * genGpuProperty (tlp::DoubleProperty &property, const tlp::Graph &graph, GpuValueType type=NODE_VALUES, bool outputOnly=false)
- TLP_GL_SCOPE GpuProperty * genGpuProperty (tlp::IntegerProperty &property, const tlp::Graph &graph, GpuValueType type=NODE_VALUES, bool outputOnly=false)
- TLP_GL_SCOPE GpuProperty * genGpuProperty (tlp::LayoutProperty &property, const tlp::Graph &graph, bool outputOnly=false)
- TLP_GL_SCOPE GpuProperty * genGpuProperty (tlp::SizeProperty &property, const tlp::Graph &graph, GpuValueType type=NODE_VALUES, bool outputOnly=false)
- TLP_GL_SCOPE bool setGpuParameter (const std::string &pName, const tlp::Color &val)
- TLP_GL_SCOPE bool setGpuParameter (const std::string &pName, const tlp::Coord &val)
- TLP_GL_SCOPE bool setGpuParameter (const std::string &pName, const tlp::Size &val)
- TLP_GL_SCOPE bool getGpuOutPropertyValues (tlp::BooleanProperty &prop, const tlp::Graph &)
- TLP_GL_SCOPE bool getGpuOutPropertyValues (tlp::ColorProperty &prop, const tlp::Graph &)
- TLP_GL_SCOPE bool getGpuOutPropertyValues (tlp::DoubleProperty &prop, const tlp::Graph &)
- TLP_GL_SCOPE bool getGpuOutPropertyValues (tlp::IntegerProperty &prop, const tlp::Graph &)
- TLP_GL_SCOPE bool getGpuOutPropertyValues (tlp::LayoutProperty &prop, const tlp::Graph &)
- TLP_GL_SCOPE bool getGpuOutPropertyValues (tlp::SizeProperty &prop, const tlp::Graph &)
Detailed Description
This file is part of Tulip (www.tulip-software.org)
Authors: David Auber and the Tulip development Team from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
Tulip is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Tulip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
ON_CENTER |
|
ON_TOP |
|
ON_BOTTOM |
|
ON_LEFT |
|
ON_RIGHT |
|
- Enumerator:
SelectSimpleEntities |
|
SelectNodes |
|
SelectEdges |
|
- Enumerator:
TLP_FB_COLOR_INFO |
|
TLP_FB_BEGIN_ENTITY |
|
TLP_FB_END_ENTITY |
|
TLP_FB_BEGIN_GRAPH |
|
TLP_FB_END_GRAPH |
|
TLP_FB_BEGIN_NODE |
|
TLP_FB_END_NODE |
|
TLP_FB_BEGIN_EDGE |
|
TLP_FB_END_EDGE |
|
Function Documentation
void CALLBACK tlp::beginCallback |
( |
GLenum |
which, |
|
|
GLvoid * |
polygonData | |
|
) |
| | |
TLP_GL_SCOPE void tlp::buildPascalTriangle |
( |
unsigned int |
n, |
|
|
std::vector< std::vector< double > > & |
pascalTriangle | |
|
) |
| | |
Compute Pascal triangle until nth row
- Parameters:
-
| n | the number of Pascal triangle rows to compute |
| pascalTriangle | a vector of vector of double to store the result. If that vector already contains m Pascal triangle rows and n > m, the first m row are not recomputed and the vector is expanded to store the new rows. |
void CALLBACK tlp::combineCallback |
( |
GLdouble |
coords[3], |
|
|
VERTEX * |
d[4], |
|
|
GLfloat |
w[4], |
|
|
VERTEX ** |
dataOut, |
|
|
GLvoid * |
polygonData | |
|
) |
| | |
TLP_GL_SCOPE Coord tlp::computeBezierPoint |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
const float |
t | |
|
) |
| | |
Compute the position of a point 'p' at t (0 <= t <= 1) along Bézier curve defined by a set of control points
- Parameters:
-
| controlPoints | a vector of control points |
| t | curve parameter value (0 <= t <= 1) |
TLP_GL_SCOPE void tlp::computeBezierPoints |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
std::vector< Coord > & |
curvePoints, |
|
|
const unsigned int |
nbCurvePoints = 100 | |
|
) |
| | |
Compute a set of points approximating a Bézier curve
- Parameters:
-
| controlPoints | a vector of control points |
| curvePoints | an empty vector to store the computed points |
| nbCurvePoints | number of points to generate |
TLP_GL_SCOPE Coord tlp::computeCatmullRomPoint |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
const float |
t, |
|
|
const bool |
closedCurve = false , |
|
|
const float |
alpha = 0.5 | |
|
) |
| | |
Compute the position of a point 'p' at t (0 <= t <= 1) along Catmull-Rom curve defined by a set of control points. The features of this type of spline are the following : -> the spline passes through all of the control points -> the spline is C1 continuous, meaning that there are no discontinuities in the tangent direction and magnitude -> the spline is not C2 continuous. The second derivative is linearly interpolated within each segment, causing the curvature to vary linearly over the length of the segment
- Parameters:
-
| controlPoints | a vector of control points |
| t | curve parameter value (0 <= t <= 1) |
| closedCurve | if true, the curve will be closed, meaning a Bézier segment will connect the last and first control point |
| alpha | curve parameterization parameter (0 <= alpha <= 1), alpha = 0 -> uniform parameterization, alpha = 0.5 -> centripetal parameterization, alpha = 1.0 -> chord-length parameterization |
TLP_GL_SCOPE void tlp::computeCatmullRomPoints |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
std::vector< Coord > & |
curvePoints, |
|
|
const bool |
closedCurve = false , |
|
|
const unsigned int |
nbCurvePoints = 100 , |
|
|
const float |
alpha = 0.5 | |
|
) |
| | |
Compute a set of points approximating a Catmull-Rom curve
- Parameters:
-
| controlPoints | a vector of control points |
| curvePoints | an empty vector to store the computed points |
| closedCurve | if true, the curve will be closed, meaning a Bézier segment will connect the last and first control point |
| alpha | curve parameterization parameter (0 <= alpha <= 1), alpha = 0 -> uniform parameterization, alpha = 0.5 -> centripetal parameterization, alpha = 1.0 -> chord-length parameterization |
| nbCurvePoints | number of points to generate |
TLP_GL_SCOPE Coord tlp::computeOpenUniformBsplinePoint |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
const float |
t, |
|
|
const unsigned int |
curveDegree = 3 | |
|
) |
| | |
Compute the position of a point 'p' at t (0 <= t <= 1) along open uniform B-spline curve defined by a set of control points. An uniform B-spline is a piecewise collection of Bézier curves of the same degree, connected end to end. The features of this type of spline are the following : -> the spline is C^2 continuous, meaning there is no discontinuities in curvature -> the spline has local control : its parameters only affect a small part of the entire spline A B-spline is qualified as open when it passes through its first and last control points.
- Parameters:
-
| controlPoints | a vector of control points |
| t | curve parameter value (0 <= t <= 1) |
| curveDegree | the B-spline degree |
TLP_GL_SCOPE void tlp::computeOpenUniformBsplinePoints |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
std::vector< Coord > & |
curvePoints, |
|
|
const unsigned int |
curveDegree = 3 , |
|
|
const unsigned int |
nbCurvePoints = 100 | |
|
) |
| | |
Compute a set of points approximating an open uniform B-spline curve
- Parameters:
-
| controlPoints | a vector of control points |
| curvePoints | an empty vector to store the computed points |
| curveDegree | the B-spline degree |
| nbCurvePoints | number of points to generate |
void CALLBACK tlp::endCallback |
( |
GLvoid * |
polygonData |
) |
|
void CALLBACK tlp::errorCallback |
( |
GLenum |
errorCode |
) |
|
TLP_GL_SCOPE GpuGraph* tlp::genGpuGraph |
( |
const tlp::Graph & |
graph |
) |
|
TLP_GL_SCOPE GpuProperty* tlp::genGpuProperty |
( |
tlp::SizeProperty & |
property, |
|
|
const tlp::Graph & |
graph, |
|
|
GpuValueType |
type = NODE_VALUES , |
|
|
bool |
outputOnly = false | |
|
) |
| | |
TLP_GL_SCOPE GpuProperty* tlp::genGpuProperty |
( |
tlp::LayoutProperty & |
property, |
|
|
const tlp::Graph & |
graph, |
|
|
bool |
outputOnly = false | |
|
) |
| | |
TLP_GL_SCOPE GpuProperty* tlp::genGpuProperty |
( |
tlp::IntegerProperty & |
property, |
|
|
const tlp::Graph & |
graph, |
|
|
GpuValueType |
type = NODE_VALUES , |
|
|
bool |
outputOnly = false | |
|
) |
| | |
TLP_GL_SCOPE GpuProperty* tlp::genGpuProperty |
( |
tlp::DoubleProperty & |
property, |
|
|
const tlp::Graph & |
graph, |
|
|
GpuValueType |
type = NODE_VALUES , |
|
|
bool |
outputOnly = false | |
|
) |
| | |
TLP_GL_SCOPE GpuProperty* tlp::genGpuProperty |
( |
tlp::ColorProperty & |
property, |
|
|
const tlp::Graph & |
graph, |
|
|
GpuValueType |
type = NODE_VALUES , |
|
|
bool |
outputOnly = false | |
|
) |
| | |
TLP_GL_SCOPE GpuProperty* tlp::genGpuProperty |
( |
tlp::BooleanProperty & |
property, |
|
|
const tlp::Graph & |
graph, |
|
|
GpuValueType |
type = NODE_VALUES , |
|
|
bool |
outputOnly = false | |
|
) |
| | |
TLP_GL_SCOPE bool tlp::getGpuOutPropertyValues |
( |
tlp::SizeProperty & |
prop, |
|
|
const tlp::Graph & |
| |
|
) |
| | |
TLP_GL_SCOPE bool tlp::getGpuOutPropertyValues |
( |
tlp::LayoutProperty & |
prop, |
|
|
const tlp::Graph & |
| |
|
) |
| | |
TLP_GL_SCOPE bool tlp::getGpuOutPropertyValues |
( |
tlp::IntegerProperty & |
prop, |
|
|
const tlp::Graph & |
| |
|
) |
| | |
TLP_GL_SCOPE bool tlp::getGpuOutPropertyValues |
( |
tlp::DoubleProperty & |
prop, |
|
|
const tlp::Graph & |
| |
|
) |
| | |
TLP_GL_SCOPE bool tlp::getGpuOutPropertyValues |
( |
tlp::ColorProperty & |
prop, |
|
|
const tlp::Graph & |
| |
|
) |
| | |
TLP_GL_SCOPE bool tlp::getGpuOutPropertyValues |
( |
tlp::BooleanProperty & |
prop, |
|
|
const tlp::Graph & |
| |
|
) |
| | |
TLP_GL_SCOPE bool tlp::setGpuParameter |
( |
const std::string & |
pName, |
|
|
const tlp::Size & |
val | |
|
) |
| | |
TLP_GL_SCOPE bool tlp::setGpuParameter |
( |
const std::string & |
pName, |
|
|
const tlp::Coord & |
val | |
|
) |
| | |
TLP_GL_SCOPE bool tlp::setGpuParameter |
( |
const std::string & |
pName, |
|
|
const tlp::Color & |
val | |
|
) |
| | |
void CALLBACK tlp::vertexCallback |
( |
GLvoid * |
vertex, |
|
|
GLvoid * |
polygonData | |
|
) |
| | |
|