Overview | Modules | Class Hierarchy | Classes | Members

Public Member Functions | Protected Member Functions | Protected Attributes
tlp::GlVertexArrayManager Class Reference

Class used to render edges/nodes with vertex array. More...

`#include <GlVertexArrayManager.h>`

List of all members.

## Public Member Functions

- GlVertexArrayManager (GlGraphInputData *inputData)
- ~GlVertexArrayManager ()
- void setInputData (GlGraphInputData *inputData)
- bool renderingIsBegin ()
- bool haveToCompute ()
- void setHaveToComputeAll (bool compute)
- void setHaveToComputeLayout (bool compute)
- void setHaveToComputeColor (bool compute)
- void beginRendering ()
- void endRendering ()
- void addEdge (GlEdge *edge)
- void addNode (GlNode *node)
- void pauseRendering (bool pause)
- void activate (bool act)
- void activateLineEdgeDisplay (GlEdge *edge, bool selected)
- void activateQuadEdgeDisplay (GlEdge *edge, bool selected)
- void activatePointEdgeDisplay (GlEdge *edge, bool selected)
- void activatePointNodeDisplay (GlNode *node, bool onePixel, bool selected)

## Protected Member Functions

- void propertyValueChanged (PropertyInterface *property)
- void addEdge (Graph *, const edge)
- void addNode (Graph *, const node)
- void afterSetEnds (Graph *, const edge)
- void beforeSetAllNodeValue (PropertyInterface *)
- void beforeSetAllEdgeValue (PropertyInterface *)
- void beforeSetNodeValue (PropertyInterface *, const node)
- void beforeSetEdgeValue (PropertyInterface *, const edge)
- void destroy (Graph *)
- void destroy (PropertyInterface *)
- void clearLayoutData ()
- void clearColorData ()
- void clearData ()
- void initObservers ()
- void clearObservers ()

## Protected Attributes

- GlGraphInputData * inputData
- Graph * graph
- LayoutProperty * layoutProperty
- SizeProperty * sizeProperty
- IntegerProperty * shapeProperty
- DoubleProperty * rotationProperty
- ColorProperty * colorProperty
- ColorProperty * borderColorProperty
- bool graphObserverActivated
- bool layoutObserverActivated
- bool colorObserverActivated
- bool activated
- bool isBegin
- bool toComputeAll
- bool toComputeLayout
- bool toComputeColor
- bool vectorLayoutSizeInit
- bool vectorColorSizeInit
- bool vectorIndexSizeInit
- bool colorInterpolate
- bool sizeInterpolate
- bool edgesModified
- std::vector< Coord > linesCoordsArray
- std::vector< Color > linesColorsArray
- std::vector< GLint > linesIndexArray
- std::vector< GLsizei > linesIndexCountArray
- std::vector< GLint > linesRenderingStartIndexArray
- std::vector< GLsizei > linesRenderingCountArray
- std::vector< GLint > linesSelectedRenderingStartIndexArray
- std::vector< GLsizei > linesSelectedRenderingCountArray
- std::vector< Coord > quadsCoordsArray
- std::vector< Color > quadsColorsArray
- std::vector< Color > quadsOutlineColorsArray
- std::vector< GLint > quadsIndexArray
- std::vector< GLsizei > quadsIndexCountArray
- std::vector< std::vector
  < GLuint > > quadsBottomOutlineIndexArray
- std::vector< std::vector
  < GLuint > > quadsTopOutlineIndexArray
- std::vector< GLint > quadsRenderingStartIndexArray
- std::vector< GLsizei > quadsRenderingCountArray
- std::vector< GLint > quadsSelectedRenderingStartIndexArray
- std::vector< GLsizei > quadsSelectedRenderingCountArray
- std::map< float, std::vector
  < const GLuint * > > quadsOutlineRenderingIndexArray
- std::map< float, std::vector
  < GLsizei > > quadsOutlineRenderingCountArray
- std::map< float, std::vector
  < const GLuint * > > quadsOutlineSelectedRenderingIndexArray
- std::map< float, std::vector
  < GLsizei > > quadsOutlineSelectedRenderingCountArray
- std::vector< Coord > pointsCoordsArray
- std::vector< Color > pointsColorsArray
- std::vector< GLuint > points1PNodesRenderingIndexArray
- std::vector< GLuint > points1PNodesSelectedRenderingIndexArray
- std::vector< GLuint > points2PNodesRenderingIndexArray
- std::vector< GLuint > points2PNodesSelectedRenderingIndexArray
- std::vector< GLuint > points1PEdgesRenderingIndexArray
- std::vector< GLuint > points1PEdgesSelectedRenderingIndexArray
- std::vector< std::pair
  < unsigned int, unsigned int > > edgeToLineIndexVector
- std::vector< std::pair
  < unsigned int, unsigned int > > edgeToQuadIndexVector
- std::vector< unsigned int > edgeToBottomOulineIndexVector
- std::vector< unsigned int > edgeToTopOutlineIndexVector
- std::vector< unsigned int > edgeToPointIndexVector
- std::vector< unsigned int > nodeToPointIndexVector

## Detailed Description

Class used to render edges/nodes with vertex array.

Class used to render edges/nodes with vertex array

## Constructor & Destructor Documentation

tlp::GlVertexArrayManager::GlVertexArrayManager | ( | GlGraphInputData * | inputData | ) |

Constructor

Parameters:

  inputData | : input data to use for this GlVertexArrayManager

tlp::GlVertexArrayManager::~GlVertexArrayManager | ( |  | ) |

## Member Function Documentation

void tlp::GlVertexArrayManager::activate | ( | bool | act | ) |

You can call this function to deactivate/activate GlVertexArrayManager

void tlp::GlVertexArrayManager::activateLineEdgeDisplay | ( | GlEdge * | edge,
|  | bool | selected
| ) |  |

This function is call when you want to activate line rendering of a specific edge

void tlp::GlVertexArrayManager::activatePointEdgeDisplay | ( | GlEdge * | edge,
|  | bool | selected
| ) |  |

This function is call when you want to activate point rendering of a specific edge

void tlp::GlVertexArrayManager::activatePointNodeDisplay | ( | GlNode * | node,
|  | bool | onePixel,
|  | bool | selected
| ) |  |

This function is call when you want to activate point rendering of a specific node

void tlp::GlVertexArrayManager::activateQuadEdgeDisplay | ( | GlEdge * | edge,
|  | bool | selected
| ) |  |

This function is call when you want to activate quad rendering of a specific edge

void tlp::GlVertexArrayManager::addEdge | ( | Graph * | ,
|  | const edge |
| ) |  | `[protected]`

void tlp::GlVertexArrayManager::addEdge | ( | GlEdge * | edge | ) |

This function is call by GlVertexArraySceneVisitor to inform GlVertexArrayManager that we need to render an edge

void tlp::GlVertexArrayManager::addNode | ( | GlNode * | node | ) |

This function is call by GlVertexArraySceneVisitor to inform GlVertexArrayManager that we need to render a node

void tlp::GlVertexArrayManager::addNode | ( | Graph * | ,
|  | const node |
| ) |  | `[protected]`

void tlp::GlVertexArrayManager::afterSetEnds | ( | Graph * | ,
|  | const edge |
| ) |  | `[protected]`

void tlp::GlVertexArrayManager::beforeSetAllEdgeValue | ( | PropertyInterface * |  | ) | `[protected]`

void tlp::GlVertexArrayManager::beforeSetAllNodeValue | ( | PropertyInterface * |  | ) | `[protected]`

void tlp::GlVertexArrayManager::beforeSetEdgeValue | ( | PropertyInterface * | ,
|  | const edge |
| ) |  | `[protected]`

void tlp::GlVertexArrayManager::beforeSetNodeValue | ( | PropertyInterface * | ,
|  | const node |
| ) |  | `[protected]`

void tlp::GlVertexArrayManager::beginRendering | ( |  | ) |

Call this function at the begining of the rendering This function clear entities to render

void tlp::GlVertexArrayManager::clearColorData | ( |  | ) | `[protected]`

void tlp::GlVertexArrayManager::clearData | ( |  | ) | `[protected]`

void tlp::GlVertexArrayManager::clearLayoutData | ( |  | ) | `[protected]`

void tlp::GlVertexArrayManager::clearObservers | ( |  | ) | `[protected]`

void tlp::GlVertexArrayManager::destroy | ( | PropertyInterface * |  | ) | `[protected]`

void tlp::GlVertexArrayManager::destroy | ( | Graph * |  | ) | `[protected]`

void tlp::GlVertexArrayManager::endRendering | ( |  | ) |

Call this funtion at the end of rendering This function draw needed entities

bool tlp::GlVertexArrayManager::haveToCompute | ( |  | ) |

Return if this GlVertexArrayManager have to compute its data

void tlp::GlVertexArrayManager::initObservers | ( |  | ) | `[protected]`

void tlp::GlVertexArrayManager::pauseRendering | ( | bool | pause | ) |

You can call this function to pause rendering For example this function is call in GlMetaNodeTrueRenderer to don't use GlVertexArrayManager

void tlp::GlVertexArrayManager::propertyValueChanged | ( | PropertyInterface * | property | ) | `[protected]`

bool tlp::GlVertexArrayManager::renderingIsBegin | ( |  | ) | `[inline]`

Return if this GlVertexArrayManager is used to render entities of the scene

void tlp::GlVertexArrayManager::setHaveToComputeAll | ( | bool | compute | ) |

Call this function if this GlVertexArrayManager have to compute colors and layout properties

void tlp::GlVertexArrayManager::setHaveToComputeColor | ( | bool | compute | ) |

Call this function if this GlVertexArrayManager have to compute colors propertie

void tlp::GlVertexArrayManager::setHaveToComputeLayout | ( | bool | compute | ) |

Call this function if this GlVertexArrayManager have to compute layout propertie

void tlp::GlVertexArrayManager::setInputData | ( | GlGraphInputData * | inputData | ) |

Call this function when you want to change input data used by this GlVertexArrayManager

## Member Data Documentation

bool tlp::GlVertexArrayManager::activated`[protected]`

ColorProperty* tlp::GlVertexArrayManager::borderColorProperty`[protected]`

bool tlp::GlVertexArrayManager::colorInterpolate`[protected]`

bool tlp::GlVertexArrayManager::colorObserverActivated`[protected]`

ColorProperty* tlp::GlVertexArrayManager::colorProperty`[protected]`

bool tlp::GlVertexArrayManager::edgesModified`[protected]`

std::vector<unsigned int> tlp::GlVertexArrayManager::edgeToBottomOulineIndexVector`[protected]`

std::vector<std::pair<unsigned int,unsigned int> > tlp::GlVertexArrayManager::edgeToLineIndexVector`[protected]`

std::vector<unsigned int> tlp::GlVertexArrayManager::edgeToPointIndexVector`[protected]`

std::vector<std::pair<unsigned int,unsigned int> > tlp::GlVertexArrayManager::edgeToQuadIndexVector`[protected]`

std::vector<unsigned int> tlp::GlVertexArrayManager::edgeToTopOutlineIndexVector`[protected]`

Graph* tlp::GlVertexArrayManager::graph`[protected]`

bool tlp::GlVertexArrayManager::graphObserverActivated`[protected]`

GlGraphInputData* tlp::GlVertexArrayManager::inputData`[protected]`

bool tlp::GlVertexArrayManager::isBegin`[protected]`

bool tlp::GlVertexArrayManager::layoutObserverActivated`[protected]`

LayoutProperty* tlp::GlVertexArrayManager::layoutProperty`[protected]`

std::vector<Color> tlp::GlVertexArrayManager::linesColorsArray`[protected]`

std::vector<Coord> tlp::GlVertexArrayManager::linesCoordsArray`[protected]`

std::vector<GLint> tlp::GlVertexArrayManager::linesIndexArray`[protected]`

std::vector<GLsizei> tlp::GlVertexArrayManager::linesIndexCountArray`[protected]`

std::vector<GLsizei> tlp::GlVertexArrayManager::linesRenderingCountArray`[protected]`

std::vector<GLint> tlp::GlVertexArrayManager::linesRenderingStartIndexArray`[protected]`

std::vector<GLsizei> tlp::GlVertexArrayManager::linesSelectedRenderingCountArray`[protected]`

std::vector<GLint> tlp::GlVertexArrayManager::linesSelectedRenderingStartIndexArray`[protected]`

std::vector<unsigned int> tlp::GlVertexArrayManager::nodeToPointIndexVector`[protected]`

std::vector<GLuint> tlp::GlVertexArrayManager::points1PEdgesRenderingIndexArray`[protected]`

std::vector<GLuint> tlp::GlVertexArrayManager::points1PEdgesSelectedRenderingIndexArray`[protected]`

std::vector<GLuint> tlp::GlVertexArrayManager::points1PNodesRenderingIndexArray`[protected]`

std::vector<GLuint> tlp::GlVertexArrayManager::points1PNodesSelectedRenderingIndexArray`[protected]`

std::vector<GLuint> tlp::GlVertexArrayManager::points2PNodesRenderingIndexArray`[protected]`

std::vector<GLuint> tlp::GlVertexArrayManager::points2PNodesSelectedRenderingIndexArray`[protected]`

std::vector<Color> tlp::GlVertexArrayManager::pointsColorsArray`[protected]`

std::vector<Coord> tlp::GlVertexArrayManager::pointsCoordsArray`[protected]`

std::vector<std::vector<GLuint> > tlp::GlVertexArrayManager::quadsBottomOutlineIndexArray`[protected]`

std::vector<Color> tlp::GlVertexArrayManager::quadsColorsArray`[protected]`

std::vector<Coord> tlp::GlVertexArrayManager::quadsCoordsArray`[protected]`

std::vector<GLint> tlp::GlVertexArrayManager::quadsIndexArray`[protected]`

std::vector<GLsizei> tlp::GlVertexArrayManager::quadsIndexCountArray`[protected]`

std::vector<Color> tlp::GlVertexArrayManager::quadsOutlineColorsArray`[protected]`

std::map<float, std::vector<GLsizei> > tlp::GlVertexArrayManager::quadsOutlineRenderingCountArray`[protected]`

std::map<float, std::vector<const GLuint* > > tlp::GlVertexArrayManager::quadsOutlineRenderingIndexArray`[protected]`

std::map<float, std::vector<GLsizei> > tlp::GlVertexArrayManager::quadsOutlineSelectedRenderingCountArray`[protected]`

std::map<float, std::vector<const GLuint* > > tlp::GlVertexArrayManager::quadsOutlineSelectedRenderingIndexArray`[protected]`

std::vector<GLsizei> tlp::GlVertexArrayManager::quadsRenderingCountArray`[protected]`

std::vector<GLint> tlp::GlVertexArrayManager::quadsRenderingStartIndexArray`[protected]`

std::vector<GLsizei> tlp::GlVertexArrayManager::quadsSelectedRenderingCountArray`[protected]`

std::vector<GLint> tlp::GlVertexArrayManager::quadsSelectedRenderingStartIndexArray`[protected]`

std::vector<std::vector<GLuint> > tlp::GlVertexArrayManager::quadsTopOutlineIndexArray`[protected]`

DoubleProperty* tlp::GlVertexArrayManager::rotationProperty`[protected]`

IntegerProperty* tlp::GlVertexArrayManager::shapeProperty`[protected]`

bool tlp::GlVertexArrayManager::sizeInterpolate`[protected]`

SizeProperty* tlp::GlVertexArrayManager::sizeProperty`[protected]`

bool tlp::GlVertexArrayManager::toComputeAll`[protected]`

bool tlp::GlVertexArrayManager::toComputeColor`[protected]`

bool tlp::GlVertexArrayManager::toComputeLayout`[protected]`

bool tlp::GlVertexArrayManager::vectorColorSizeInit`[protected]`

bool tlp::GlVertexArrayManager::vectorIndexSizeInit`[protected]`

bool tlp::GlVertexArrayManager::vectorLayoutSizeInit`[protected]`

Tulip Software by LaBRI Visualization Team 2001 - 2012