tlp::GlGraphRenderingParameters Class Reference#include <GlGraphRenderingParameters.h>
List of all members.
Detailed Description
That class defines all the paremters used by the GlGraph class during the rendering of a graph. Public Member Functions
Constructor & Destructor Documentation
tlp::GlGraphRenderingParameters::GlGraphRenderingParameters |
( |
|
) |
|
Member Function Documentation
DataSet tlp::GlGraphRenderingParameters::getParameters |
( |
|
) |
const |
void tlp::GlGraphRenderingParameters::setParameters |
( |
const DataSet & |
|
) |
|
void tlp::GlGraphRenderingParameters::setGraph |
( |
tlp::Graph * |
graph |
) |
|
set the graph used for rendering
Graph* tlp::GlGraphRenderingParameters::getGraph |
( |
|
) |
const |
get the graph used for rendering
void tlp::GlGraphRenderingParameters::setViewport |
( |
const unsigned |
x, |
|
|
const unsigned |
y, |
|
|
const unsigned int |
width, |
|
|
const unsigned int |
height | |
|
) |
| | |
set viewport of the drawing (screen size)
void tlp::GlGraphRenderingParameters::setViewport |
( |
const Vector< int, 4 > & |
viewport |
) |
|
set viewport of the drawing (screen size)
tlp::Vector<int, 4> tlp::GlGraphRenderingParameters::getViewport |
( |
|
) |
const |
copy current values into given parameters (names are corresponding)
Camera tlp::GlGraphRenderingParameters::getCamera |
( |
|
) |
const |
return a Camera object which desribes the camera used for he rendering
void tlp::GlGraphRenderingParameters::setCamera |
( |
const Camera & |
cam |
) |
|
set the camera parameter for the rendering
Color tlp::GlGraphRenderingParameters::getBackgroundColor |
( |
|
) |
const |
return the background color
void tlp::GlGraphRenderingParameters::setBackgroundColor |
( |
const Color & |
|
) |
|
set the background color, RGB colorspace.
void tlp::GlGraphRenderingParameters::setViewArrow |
( |
const bool |
state |
) |
|
activate or deactivate displaying of arrows along the graph's edges.
bool tlp::GlGraphRenderingParameters::isViewArrow |
( |
|
) |
const |
return true if arrows drawing is activated else false. - See also:
- setViewArrow
void tlp::GlGraphRenderingParameters::setViewNodeLabel |
( |
const bool |
state |
) |
|
activate or deactivate displaying of labels on nodes.
bool tlp::GlGraphRenderingParameters::isViewNodeLabel |
( |
|
) |
const |
return true if drawing of nodes' labels is activated.
void tlp::GlGraphRenderingParameters::setViewEdgeLabel |
( |
const bool |
state |
) |
|
activate or deactivate displaying of labels on nodes.
bool tlp::GlGraphRenderingParameters::isViewEdgeLabel |
( |
|
) |
const |
return true if drawing of nodes' labels is activated.
void tlp::GlGraphRenderingParameters::setEdgeColorInterpolate |
( |
const bool |
state |
) |
|
activate or deactivate interpolation of nodes colors along edge
bool tlp::GlGraphRenderingParameters::isEdgeColorInterpolate |
( |
|
) |
const |
return true if color interpolation is activated
void tlp::GlGraphRenderingParameters::setEdgeSizeInterpolate |
( |
const bool |
state |
) |
|
activate or deactivate interpolation of nodes colors along edge
bool tlp::GlGraphRenderingParameters::isEdgeSizeInterpolate |
( |
|
) |
const |
return true if color interpolation is activated
unsigned int tlp::GlGraphRenderingParameters::getFontsType |
( |
|
) |
const |
return the type of fonts used in the renderer(0=3D,1=bitmap,2=texture)
void tlp::GlGraphRenderingParameters::setFontsType |
( |
unsigned int |
type |
) |
|
set fonts type used in the renderer (0=3D,1=bitmap,2=texture)
void tlp::GlGraphRenderingParameters::setTexturePath |
( |
const std::string & |
path |
) |
|
set the path for the texture loading
std::string tlp::GlGraphRenderingParameters::getTexturePath |
( |
|
) |
|
return the absolute path used for texture loading
void tlp::GlGraphRenderingParameters::setFontsPath |
( |
const std::string & |
path |
) |
|
set the absolute path used for the fonts loading
std::string tlp::GlGraphRenderingParameters::getFontsPath |
( |
|
) |
|
return the absolute path used for the fonts loading
void tlp::GlGraphRenderingParameters::setViewOrtho |
( |
const bool |
state |
) |
|
if true activate the Orthogonal projection, else perspective is used.
bool tlp::GlGraphRenderingParameters::isViewOrtho |
( |
|
) |
const |
return true if orthogonal projection is used.
void tlp::GlGraphRenderingParameters::setIncrementalRendering |
( |
const bool |
state |
) |
|
if true glgraph use the incremental rendering else display all elements in one pass
bool tlp::GlGraphRenderingParameters::isIncrementalRendering |
( |
|
) |
const |
return the incremental rendering state
void tlp::GlGraphRenderingParameters::setViewMetaLabel |
( |
const bool |
state |
) |
|
If true and if labels are activated label inside meta nodes will be displayed
bool tlp::GlGraphRenderingParameters::isViewMetaLabel |
( |
|
) |
const |
return the true if viewMetaLabels is enable else false
void tlp::GlGraphRenderingParameters::setDisplayEdges |
( |
const bool |
state |
) |
|
If true edges are displayed.
bool tlp::GlGraphRenderingParameters::isDisplayEdges |
( |
|
) |
const |
return true if edges are displayed.
void tlp::GlGraphRenderingParameters::setElementOrdered |
( |
const bool |
state |
) |
|
If true node and edges are ordered according to the viewMetric property
bool tlp::GlGraphRenderingParameters::isElementOrdered |
( |
|
) |
const |
return true if element ordering is activated
void tlp::GlGraphRenderingParameters::setEdge3D |
( |
const bool |
state |
) |
|
if true use 3D displaying of edges instead of 2D lines on ALL edges
bool tlp::GlGraphRenderingParameters::isEdge3D |
( |
|
) |
const |
return true if 3D drawing of edges is activated
unsigned int tlp::GlGraphRenderingParameters::getLabelsBorder |
( |
|
) |
const |
Get the size of the border that is added to any label when using bitmap fonts.
void tlp::GlGraphRenderingParameters::setLabelsBorder |
( |
const unsigned |
int |
) |
|
Get the size of the border that is added to any label when using bitmap fonts. Setting this parameter to a high value enables de reduce the label density in the final drawing. Default value is set to 2 which enables readable labels.
void tlp::GlGraphRenderingParameters::setInputLayout |
( |
const std::string & |
layoutName |
) |
|
Define the name of the layout that is used for rendering the graph (default is "viewLayout")
std::string tlp::GlGraphRenderingParameters::getInputLayout |
( |
|
) |
const |
Return the name of the layout that is used for rendering the graph (default is "viewLayout")
|