GlobeEngine
geData::MultiLineObject Class Reference

#include <MultiLineObject.h>

Inheritance diagram for geData::MultiLineObject:
ge::DrawableComponent ge::GlobeComponent

Public Types

enum  GEOMETRYMODE {
  LINESTRIPS = 0, LINES, TRIANGLES_OVERLAPPING, EXTRUDED_GEOMETRY,
  RIBBON, TRIANGULATED
}
 
- Public Types inherited from ge::DrawableComponent
enum  RENDERSTATE {
  STENCILPASS, DEPTHPASS, RENDER, OCCLUSIONTEST,
  OCCLUSIONGROUNDTEST, OCCLUSIONRESULT, EMPTY, DECALPASS
}
 

Public Member Functions

 MultiLineObject ()
 
 ~MultiLineObject ()
 
void clear ()
 
void create ()
 
void create (int _lineCount, int _lineSize)
 
void update ()
 
void draw (std::shared_ptr< ge::Camera > _cam)
 
void drawWithStandardShader (std::shared_ptr< ge::Camera > _cam)
 
int addLine (vmml::Vector3d _start, vmml::Vector3d _end)
 
int addPolyline (std::shared_ptr< PolyLine > _polyline)
 
void updatePolyline (int _id, std::shared_ptr< PolyLine > _polyline)
 
void removePolyline (int _id)
 
void insertPolyline (int _id, std::shared_ptr< PolyLine > _polyline)
 
const std::shared_ptr< PolyLinegetPolyline (int _idx) const
 
void createVAO (enum GEOMETRYMODE _mode=LINES)
 
void setLineWeight (int _lineIdx, double _wheight)
 
void setLineWeightAndColor (int _idx, double _wheight, vmml::Vector3f _color)
 
void addToLineWeight (int _idx, double _value)
 
double getLineWeight (int _idx)
 
vmml::Vector3f getLineWeightColor (int _idx)
 
void setLineThickness (double _input)
 
int getLineCount ()
 
void setLineCount (int _input)
 
int getLineSize ()
 
int getGraphPointCount () const
 
double getLineThickness ()
 
void setWheightedColorBuffer (int _bufferID)
 
enum GEOMETRYMODE getDrawMode () const
 
void setExtrusionXZ (double _input)
 
void setExtrusionY (double _input)
 
void setGeometryBuffer (int _bufferID)
 
void setGeometryBufferAsRibbons (int _bufferID)
 
void setColorBuffer (int _bufferID, const vmml::Vector3f *_color=NULL)
 
void setAnimatedColorBuffer (int _bufferID, const vmml::Vector3f *_animationColor)
 
void setPickIDBuffer (int _bufferID)
 
void setLinestripIndices ()
 
void setIndicesForLines ()
 
void setIndicesForOverlappingTriangles ()
 
void setIndicesForRibbons ()
 
void clearGeometryMemory ()
 
bool isAnimatedColorUpdated ()
 
void moveAnimationForward ()
 
void moveAnimationBackward ()
 
void setAnimatedTimeStep (float _timeStep)
 
- Public Member Functions inherited from ge::DrawableComponent
 DrawableComponent ()
 
 ~DrawableComponent ()
 
 DrawableComponent (const DrawableComponent &_in)=delete
 
DrawableComponentoperator= (const DrawableComponent &_in)=delete
 
virtual void draw (std::shared_ptr< ge::Camera > _cam)
 
virtual void setPosition (vmml::Vector3d _position)
 
vmml::Vector3d getPosition () const
 
virtual void setScale (vmml::Vector3d _scale)
 
vmml::Vector3d getScale () const
 
virtual void setRotation (vmml::Vector3d _rotations)
 
vmml::Vector3d getRotation () const
 
void setBoundingSphere (BoundingSphere _boundingSphere)
 
void setBoundingBox (BoundingBox3d _boundingBox)
 
const BoundingSpheregetBoundingSphere () const
 
const BoundingBox3dgetBoundingBox () const
 
bool isVisible () const
 
virtual void isVisible (bool _input)
 
bool isGeometryReady () const
 
virtual void isGeometryReady (bool _input)
 
virtual void setColor (vmml::Vector3f _color)
 
const vmml::Vector3f getColor () const
 
virtual void setColorPerVertex (unsigned int _in)
 
unsigned int getColorPerVertex () const
 
void setTextured (bool _in)
 
bool isTextured ()
 
void setTextureHandle (GLuint _handle)
 
GLuint getTextureHandle () const
 
void setNormalTextureHandle (GLuint _handle)
 
GLuint getNormalTextureHandle () const
 
void setNormalMapped (bool _in)
 
bool isNormalMapped ()
 
virtual void setShader (std::shared_ptr< ge::Shader > _shader)
 
void setStandardUniforms ()
 
const std::shared_ptr< ge::ShadergetShader () const
 
void recompileShader ()
 
void setNormalMatrix ()
 
void setModelMatrices ()
 
vmml::Matrix4d getModelMatrix () const
 
vmml::Matrix4d getInverseModelMatrix () const
 
void setViewProjMatrices (const std::shared_ptr< ge::Camera > _cam)
 
void setMVPMatrix (const std::shared_ptr< ge::Camera > _cam)
 
virtual void enableOcclusionQueries (bool _in)
 
void beginOcclusionQuery (RENDERSTATE _state)
 
void endOcclusionQuery (RENDERSTATE _state)
 
GLuint getQueryResult ()
 
void enablePointSprites ()
 
void disablePointSprites ()
 
void fillIndexBufferWithLinearValues ()
 
void enableVertexAttributes (int vaaSize=2)
 
void disableVertexAttributes (int vaaSize=2)
 
void setNumberOfVertexAttributes (unsigned int _in)
 
void generateVertexHandlesFromShader (int _bufferCount=0)
 
void setVertexAttributePointer (GLuint _bufferID, GLuint _index, GLint _size, GLenum _type)
 
void setVertexAttributePointerNormalized (GLuint _bufferID, GLuint _index, GLint _size, GLenum _type)
 
void setVertexLongAttributePointer (GLuint _bufferID, GLuint _index, GLint _size, GLenum _type)
 
void unbindVertexBuffers ()
 
void setAttributeBuffer1i (int _bufferID, int _input)
 
void setAttributeBuffer1i (int _bufferID, std::vector< int > _input)
 
void setAttributeBuffer1f (int _bufferID, float _value)
 
void setAttributeBuffer1f (int _bufferID, std::vector< float > _input)
 
void addVertex3fAttribute (unsigned int _bufferPos, unsigned int _size, const vmml::Vector3d _value)
 
void addVertex3fAttribute (unsigned int _bufferPos, unsigned int _size, const vmml::Vector3d *_values)
 
void addCustomVertexAttributef (unsigned int _bufferPos, unsigned int _attributeCount, unsigned int _sizePerAttribute, float **_values)
 
void setDepthMatrix (vmml::Matrix4d _mat)
 
void setDepthMatrixUniform ()
 
void setDepthTextureHandle (GLuint _handle)
 
void setDepthUniforms ()
 
GLuint getDepthTextureHandle () const
 
void setPickingInformation ()
 
void createMultiDrawPointerList (GLuint _numberOfDrawObjects, GLsizei *_stripLenghts)
 
void createMultiDrawPointerList (GLuint _numberOfDrawObjects, GLsizei _stripLenghts)
 
void drawMultiElements (GLenum _mode, const GLsizei *_count, GLsizei _drawcount)
 
void drawArrays (GLenum _mode, GLint _first, GLsizei _count)
 
void drawElements (GLenum _mode, GLsizei _count, const GLvoid *_indices)
 
void drawMultiArrays (GLenum _mode, const GLsizei *_count, GLsizei _drawcount)
 
void enablePrimitiveRestart ()
 
void disablePrimitiveRestart ()
 
void setPrimitiveRestartIndex (GLuint _in)
 
unsigned int getVertexCount () const
 
void setVertexAttributePointerForBuffer (unsigned int _bufferID, unsigned int _size, GLenum _type)
 
- Public Member Functions inherited from ge::GlobeComponent
 GlobeComponent ()
 
virtual ~GlobeComponent ()=0
 
GLuint getUID () const
 
virtual void setUID (GLuint _input)
 
GLuint getGroupID () const
 
virtual void setGroupID (GLuint _input)
 
const std::string getName () const
 
void setName (std::string _name)
 

Additional Inherited Members

- Protected Attributes inherited from ge::DrawableComponent
std::shared_ptr< ge::Shadershader
 
vmml::Vector3d position
 
vmml::Vector3d scale
 
vmml::Vector3d rotations
 
vmml::Vector3f color
 
unsigned int colorPerVertex
 
bool textured
 
GLuint colorTexHandle
 
bool normalMapped
 
GLuint normalTexHandle
 
BoundingSphereboundingSphere
 
BoundingBox3dboundingBox
 
vmml::Matrix4d modelMatrix
 
vmml::Matrix4d mvpMatrix
 
vmml::Matrix3d normalMatrix
 
vmml::Matrix4d depthTextureMatrix
 
GLuint depthTextureHandle
 
ge::VertexArrayObject vao
 
ge::VertexBufferArray attributes
 
GLuint vertexCount
 
GLuint indexCount
 
ge::IndexBuffer indexBuffer
 
GLuint multiDrawPointerListSize
 
const GLvoid ** multiDrawPointerList
 
GLint * multiDrawArraysList
 
GLuint occlusionQueryState
 
GLuint occlusionQueryID
 
GLuint queryResultPixelCount
 
GLint uniformViewMatrixLocation
 
GLint uniformProjectionMatrixLocation
 
GLint uniformModelMatrixLocation
 
GLint uniformMVPMatrixLocation
 
GLint uniformObjectColorLocation
 
GLint uniformColorPerVertexLocation
 
GLint uniformObjectIDLocation
 
GLint uniformObjectGroupIDLocation
 
- Protected Attributes inherited from ge::GlobeComponent
int uid
 
int group_uid
 
std::string name
 

Member Enumeration Documentation

Enumerator
LINESTRIPS 
LINES 
TRIANGLES_OVERLAPPING 
EXTRUDED_GEOMETRY 
RIBBON 
TRIANGULATED 

Constructor & Destructor Documentation

geData::MultiLineObject::MultiLineObject ( )
geData::MultiLineObject::~MultiLineObject ( )

Member Function Documentation

int geData::MultiLineObject::addLine ( vmml::Vector3d  _start,
vmml::Vector3d  _end 
)

Add a line with start and end point to the MultiLineObject

int geData::MultiLineObject::addPolyline ( std::shared_ptr< PolyLine _polyline)

Add a polyline to the multiLineObject

void geData::MultiLineObject::addToLineWeight ( int  _idx,
double  _value 
)
void geData::MultiLineObject::clear ( )
virtual

Reimplemented from ge::DrawableComponent.

void geData::MultiLineObject::clearGeometryMemory ( )
void geData::MultiLineObject::create ( )
virtual

Implements ge::GlobeComponent.

void geData::MultiLineObject::create ( int  _lineCount,
int  _lineSize 
)
void geData::MultiLineObject::createVAO ( GEOMETRYMODE  _mode = LINES)

Create the geometry of this object.

void geData::MultiLineObject::draw ( std::shared_ptr< ge::Camera _cam)
void geData::MultiLineObject::drawWithStandardShader ( std::shared_ptr< ge::Camera _cam)
enum GEOMETRYMODE geData::MultiLineObject::getDrawMode ( ) const
inline
int geData::MultiLineObject::getGraphPointCount ( ) const
int geData::MultiLineObject::getLineCount ( )
int geData::MultiLineObject::getLineSize ( )
double geData::MultiLineObject::getLineThickness ( )
double geData::MultiLineObject::getLineWeight ( int  _idx)
vmml::Vector3f geData::MultiLineObject::getLineWeightColor ( int  _idx)
const std::shared_ptr< PolyLine > geData::MultiLineObject::getPolyline ( int  _idx) const
void geData::MultiLineObject::insertPolyline ( int  _id,
std::shared_ptr< PolyLine _polyline 
)

Insert a specific polyline at a specific index

bool geData::MultiLineObject::isAnimatedColorUpdated ( )
inline
void geData::MultiLineObject::moveAnimationBackward ( )
void geData::MultiLineObject::moveAnimationForward ( )
void geData::MultiLineObject::removePolyline ( int  _id)

Remove a specific polyline

void geData::MultiLineObject::setAnimatedColorBuffer ( int  _bufferID,
const vmml::Vector3f *  _animationColor 
)
void geData::MultiLineObject::setAnimatedTimeStep ( float  _timeStep)
void geData::MultiLineObject::setColorBuffer ( int  _bufferID,
const vmml::Vector3f *  _color = NULL 
)
void geData::MultiLineObject::setExtrusionXZ ( double  _input)
void geData::MultiLineObject::setExtrusionY ( double  _input)
void geData::MultiLineObject::setGeometryBuffer ( int  _bufferID)
void geData::MultiLineObject::setGeometryBufferAsRibbons ( int  _bufferID)
void geData::MultiLineObject::setIndicesForLines ( )
void geData::MultiLineObject::setIndicesForOverlappingTriangles ( )
void geData::MultiLineObject::setIndicesForRibbons ( )
void geData::MultiLineObject::setLineCount ( int  _input)
void geData::MultiLineObject::setLinestripIndices ( )
void geData::MultiLineObject::setLineThickness ( double  _input)
void geData::MultiLineObject::setLineWeight ( int  _lineIdx,
double  _wheight 
)
void geData::MultiLineObject::setLineWeightAndColor ( int  _idx,
double  _wheight,
vmml::Vector3f  _color 
)
void geData::MultiLineObject::setPickIDBuffer ( int  _bufferID)
void geData::MultiLineObject::setWheightedColorBuffer ( int  _bufferID)
void geData::MultiLineObject::update ( )
virtual

Implements ge::GlobeComponent.

void geData::MultiLineObject::updatePolyline ( int  _id,
std::shared_ptr< PolyLine _polyline 
)

Update a specific polyline off the multiLineObject with a new line


The documentation for this class was generated from the following files: