Overview     Modules     Class Hierarchy     Classes     Members  

tlp Namespace Reference


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.

Classes

Typedefs

Enumerations

Functions

  • 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 &)

Typedef Documentation

typedef struct tlp::_DepthIndex tlp::DepthIndex
 

typedef struct tlp::_FeedBack3Dcolor tlp::Feedback3Dcolor
 

typedef Matrix<float, 4> tlp::MatrixGL
 


Enumeration Type Documentation

enum tlp::SelectionFlag
 

Enumerator:
SelectSimpleEntities 
SelectNodes 
SelectEdges 

enum tlp::ShaderType
 

Enumerator:
Vertex 
Fragment 
Geometry 

enum tlp::TLP_FB_TROUGHTOKENTYPE
 

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

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

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
 



Tulip Software by LaBRI Visualization Team    2001 - 2010