GlobeEngine
geData::PointCloud Class Reference

#include <PointCloud.h>

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

Public Types

enum  OperationType { SUM, L1_NORM, L2_NORM }
 
- Public Types inherited from ge::DrawableComponent
enum  RENDERSTATE {
  STENCILPASS, DEPTHPASS, RENDER, OCCLUSIONTEST,
  OCCLUSIONGROUNDTEST, OCCLUSIONRESULT, EMPTY, DECALPASS
}
 

Public Member Functions

 PointCloud ()
 
 ~PointCloud ()
 
void clear ()
 
void create ()
 
void create (int _pointCount)
 
void rescale (double *minBound, double *edgelength, double *rescaleTo)
 
void rescaleHeights (double _newmin, double _newmax)
 
void update ()
 
void draw (std::shared_ptr< ge::Camera > _cam)
 
void drawWithStandardShader (std::shared_ptr< ge::Camera > _cam)
 
void createVAO ()
 
void createIconVAO ()
 
void createChartVAO ()
 
void createMultiIconVAO (std::vector< int > _input)
 
void addPoint (vmml::Vector3d _point)
 
void addPoint (int _index, double _x, double _y, double _z)
 
void addPoint (int _index, vmml::Vector3d _point)
 
void setPoint (int _index, vmml::Vector3d _point)
 
void addPointZeroHeight (int _index, double _x, double _y)
 
void setPointHeight (int _index, double _height)
 
vmml::Vector3d getPoint (int _index) const
 
void setColor (vmml::Vector3f)
 
void setColor (vmml::Vector3f _color, int i)
 
void setColorNoVAOUpdate (int _index, vmml::Vector3f _color)
 
void setOuterRingColor (vmml::Vector4f _color)
 
vmml::Vector4f getOuterRingColor () const
 
void setRingBorder (float _threshold)
 
void setData (double *points)
 
int getPointCount () const
 
void setPointSize (float _size)
 
float getPointSize ()
 
int getPointCloudSize ()
 
void addCustomAttribute ()
 
void addCustomAttribute (unsigned int _size)
 
int addCustomAttributeByOperation (OperationType _op)
 
void setCustomAttributeByOperation (unsigned int _attributeNumber, OperationType _op)
 
void setCustomAttributeValues (unsigned int _attributeNumber, const float *_values)
 
void setCustomAttributeValues (unsigned int _attributeNumber, const int *_values)
 
void setCustomAttributeValues (unsigned int _attributeNumber, const std::vector< int > _values)
 
void setCustomAttributeColor (unsigned int _attributeNumber, vmml::Vector3f _color)
 
void setSinglePointSize (int _bufferID, int _pointID, float _size)
 
void setGeometryBuffer (int _bufferID=0)
 
- 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)
 
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
SUM 
L1_NORM 
L2_NORM 

Constructor & Destructor Documentation

geData::PointCloud::PointCloud ( )
geData::PointCloud::~PointCloud ( )

Member Function Documentation

void geData::PointCloud::addCustomAttribute ( )
void geData::PointCloud::addCustomAttribute ( unsigned int  _size)
int geData::PointCloud::addCustomAttributeByOperation ( OperationType  _op)
void geData::PointCloud::addPoint ( vmml::Vector3d  _point)
void geData::PointCloud::addPoint ( int  _index,
double  _x,
double  _y,
double  _z 
)
void geData::PointCloud::addPoint ( int  _index,
vmml::Vector3d  _point 
)
void geData::PointCloud::addPointZeroHeight ( int  _index,
double  _x,
double  _y 
)
void geData::PointCloud::clear ( )
virtual

Reimplemented from ge::DrawableComponent.

void geData::PointCloud::create ( )
virtual

Implements ge::GlobeComponent.

void geData::PointCloud::create ( int  _pointCount)
void geData::PointCloud::createChartVAO ( )
void geData::PointCloud::createIconVAO ( )
void geData::PointCloud::createMultiIconVAO ( std::vector< int _input)
void geData::PointCloud::createVAO ( )
void geData::PointCloud::draw ( std::shared_ptr< ge::Camera _cam)
void geData::PointCloud::drawWithStandardShader ( std::shared_ptr< ge::Camera _cam)
vmml::Vector4f geData::PointCloud::getOuterRingColor ( ) const
vmml::Vector3d geData::PointCloud::getPoint ( int  _index) const
int geData::PointCloud::getPointCloudSize ( )
int geData::PointCloud::getPointCount ( ) const
float geData::PointCloud::getPointSize ( )
void geData::PointCloud::rescale ( double *  minBound,
double *  edgelength,
double *  rescaleTo 
)
void geData::PointCloud::rescaleHeights ( double  _newmin,
double  _newmax 
)
void geData::PointCloud::setColor ( vmml::Vector3f  _color)
virtual

Reimplemented from ge::DrawableComponent.

void geData::PointCloud::setColor ( vmml::Vector3f  _color,
int  i 
)
void geData::PointCloud::setColorNoVAOUpdate ( int  _index,
vmml::Vector3f  _color 
)
void geData::PointCloud::setCustomAttributeByOperation ( unsigned int  _attributeNumber,
OperationType  _op 
)
void geData::PointCloud::setCustomAttributeColor ( unsigned int  _attributeNumber,
vmml::Vector3f  _color 
)
void geData::PointCloud::setCustomAttributeValues ( unsigned int  _attributeNumber,
const float *  _values 
)
void geData::PointCloud::setCustomAttributeValues ( unsigned int  _attributeNumber,
const int _values 
)
void geData::PointCloud::setCustomAttributeValues ( unsigned int  _attributeNumber,
const std::vector< int _values 
)
void geData::PointCloud::setData ( double *  points)
void geData::PointCloud::setGeometryBuffer ( int  _bufferID = 0)
void geData::PointCloud::setOuterRingColor ( vmml::Vector4f  _color)
void geData::PointCloud::setPoint ( int  _index,
vmml::Vector3d  _point 
)
void geData::PointCloud::setPointHeight ( int  _index,
double  _height 
)
void geData::PointCloud::setPointSize ( float  _size)
void geData::PointCloud::setRingBorder ( float  _threshold)
void geData::PointCloud::setSinglePointSize ( int  _bufferID,
int  _pointID,
float  _size 
)
void geData::PointCloud::update ( )
virtual

Implements ge::GlobeComponent.


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