GlobeEngine
geGIS::GlobeComposition Class Reference

#include <GlobeComposition.h>

Inheritance diagram for geGIS::GlobeComposition:
ge::Composition ge::DrawableComponent ge::GlobeComponent

Public Member Functions

 GlobeComposition ()
 
 ~GlobeComposition ()
 
void enableEdgeHightlights (bool _in)
 
void setColorForEdgeHightlights (vmml::Vector4f _in)
 
void setLaplaceFilterThreshold (float _in)
 
const ge::DirectionalLightgetSunlight ()
 
void setGPUFeatureFlags (GPUFeatureFlags _in)
 
const GPUFeatureFlagsgetGPUFeatureFlags ()
 
void setGPUFeatureBufferHandle (GLuint _handle)
 
void setGPUFeatureBufferAndBoundsHandle (GLuint _handle, GLuint _boundhandle)
 
void setGPUFeatureAttributeBufferHandle (GLuint _handle)
 
void setGPUFeatureStyleBufferHandles (geGIS::StyleCollectionUniformHandles _handles)
 
void enableDecals (bool _in)
 
bool isDecalpassEnabled ()
 
void setGPUFeatureHierachyMaxDepth (int _input)
 
void setGPUFeatureLineRadius (double _rad, double _maxRad)
 
void setGPUMouseLensRadius (float _in)
 
void setGPUMouseLensCategory (int _in)
 
void setGPUClusteredSize (vmml::Vector2d _size)
 
void setGPUClusteredObjectBounds (vmml::Vector4d _bound)
 
bool isPerspectiveLineAdjustmentEnabled ()
 
void enablePerspectiveLineAdjustment (bool _in)
 
void setMouseCoord (vmml::Vector2f _mouseCoord)
 
- Public Member Functions inherited from ge::Composition
 Composition ()
 
 ~Composition ()
 
void clear ()
 
void create (std::shared_ptr< ge::Shader > _shader)
 
void create (std::string _shaderFile)
 
void update ()
 
void setSceneState (SceneStateSet *_state)
 
void createFramebuffer (enum FrameBufferObject::FBOTYPE _type, int _w, int _h, int _channels)
 
void draw (std::shared_ptr< ge::Camera > _cam)
 
void setTextureHandle (GLint _unit, const std::shared_ptr< ge::TextureHandle > _handle)
 
void setModelViewMatrix (vmml::Matrix4d _mat)
 
void setProjectionMatrix (vmml::Matrix4d _mat)
 
void setInverseViewProjectionMatrix (vmml::Matrix4d _inverseViewProjectionMatrix)
 
FrameBufferObjectgetFrameBuffer ()
 
void setViewport (vmml::Vector2d _viewport)
 
void enable ()
 
void disable ()
 
bool isEnabled ()
 
void enableFramebuffer ()
 
void disableFramebuffer ()
 
bool isFramebufferEnabled ()
 
void setZeroFramebufferID (int _id)
 
void reloadShader (std::shared_ptr< ge::Shader > _shader)
 
- Public Member Functions inherited from ge::DrawableComponent
 DrawableComponent ()
 
 ~DrawableComponent ()
 
 DrawableComponent (const DrawableComponent &_in)=delete
 
DrawableComponentoperator= (const DrawableComponent &_in)=delete
 
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)
 

Protected Member Functions

void drawFrame (std::shared_ptr< ge::Camera > _cam)
 
- Protected Member Functions inherited from ge::Composition
void create ()
 
virtual void drawFrame (std::shared_ptr< ge::Camera > _cam)
 
void drawPlane ()
 
void setUniformsForMatrices ()
 

Protected Attributes

bool decalsEnabled
 
bool edgesHighlighted
 
float laplacefilterThreshold
 
vmml::Vector4f edgeHighlightColor
 
ge::Light light
 
ge::SpotLight spotLight
 
ge::DirectionalLight directionalLight
 
GPUFeatureFlags featureflags
 
GLuint gpuBufferHandle
 
GLuint gpuBoundBufferHandle
 
GLuint gpuCategoryBufferHandle
 
geGIS::StyleCollectionUniformHandles styleBufferHandles
 
vmml::Vector2d clusterSize
 
vmml::Vector4d objectBounds
 
vmml::Vector2f mouseCoord
 
double lineRadius
 
double maxlineRadius
 
int maxDepth
 
float plaOnOff
 
- Protected Attributes inherited from ge::Composition
SceneStateSetsceneState
 
FrameBufferObject compositionFramebuffer
 
vmml::Matrix4d modelViewMatrix
 
vmml::Matrix4d projectionMatrix
 
vmml::Matrix4d inverseViewProjectionMatrix
 
bool enabled
 
bool enabledFramebuffer
 
int texChannels
 
std::shared_ptr< ge::TextureHandletextures [32]
 
vmml::Vector2d viewport
 
- 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
 

Additional Inherited Members

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

Constructor & Destructor Documentation

geGIS::GlobeComposition::GlobeComposition ( )
geGIS::GlobeComposition::~GlobeComposition ( )
inline

Member Function Documentation

void geGIS::GlobeComposition::drawFrame ( std::shared_ptr< ge::Camera _cam)
protected
void geGIS::GlobeComposition::enableDecals ( bool  _in)
void geGIS::GlobeComposition::enableEdgeHightlights ( bool  _in)
void geGIS::GlobeComposition::enablePerspectiveLineAdjustment ( bool  _in)
const GPUFeatureFlags * geGIS::GlobeComposition::getGPUFeatureFlags ( )
const ge::DirectionalLight* geGIS::GlobeComposition::getSunlight ( )
inline
bool geGIS::GlobeComposition::isDecalpassEnabled ( )
bool geGIS::GlobeComposition::isPerspectiveLineAdjustmentEnabled ( )
void geGIS::GlobeComposition::setColorForEdgeHightlights ( vmml::Vector4f  _in)
void geGIS::GlobeComposition::setGPUClusteredObjectBounds ( vmml::Vector4d  _bound)
void geGIS::GlobeComposition::setGPUClusteredSize ( vmml::Vector2d  _size)
void geGIS::GlobeComposition::setGPUFeatureAttributeBufferHandle ( GLuint  _handle)
void geGIS::GlobeComposition::setGPUFeatureBufferAndBoundsHandle ( GLuint  _handle,
GLuint  _boundhandle 
)
void geGIS::GlobeComposition::setGPUFeatureBufferHandle ( GLuint  _handle)
void geGIS::GlobeComposition::setGPUFeatureFlags ( GPUFeatureFlags  _in)
void geGIS::GlobeComposition::setGPUFeatureHierachyMaxDepth ( int  _input)
void geGIS::GlobeComposition::setGPUFeatureLineRadius ( double  _rad,
double  _maxRad 
)
void geGIS::GlobeComposition::setGPUFeatureStyleBufferHandles ( geGIS::StyleCollectionUniformHandles  _handles)
void geGIS::GlobeComposition::setGPUMouseLensCategory ( int  _in)
void geGIS::GlobeComposition::setGPUMouseLensRadius ( float  _in)
void geGIS::GlobeComposition::setLaplaceFilterThreshold ( float  _in)
void geGIS::GlobeComposition::setMouseCoord ( vmml::Vector2f  _mouseCoord)

Member Data Documentation

vmml::Vector2d geGIS::GlobeComposition::clusterSize
protected
bool geGIS::GlobeComposition::decalsEnabled
protected
ge::DirectionalLight geGIS::GlobeComposition::directionalLight
protected
vmml::Vector4f geGIS::GlobeComposition::edgeHighlightColor
protected
bool geGIS::GlobeComposition::edgesHighlighted
protected
GPUFeatureFlags geGIS::GlobeComposition::featureflags
protected
GLuint geGIS::GlobeComposition::gpuBoundBufferHandle
protected
GLuint geGIS::GlobeComposition::gpuBufferHandle
protected
GLuint geGIS::GlobeComposition::gpuCategoryBufferHandle
protected
float geGIS::GlobeComposition::laplacefilterThreshold
protected
ge::Light geGIS::GlobeComposition::light
protected
double geGIS::GlobeComposition::lineRadius
protected
int geGIS::GlobeComposition::maxDepth
protected
double geGIS::GlobeComposition::maxlineRadius
protected
vmml::Vector2f geGIS::GlobeComposition::mouseCoord
protected
vmml::Vector4d geGIS::GlobeComposition::objectBounds
protected
float geGIS::GlobeComposition::plaOnOff
protected
ge::SpotLight geGIS::GlobeComposition::spotLight
protected
geGIS::StyleCollectionUniformHandles geGIS::GlobeComposition::styleBufferHandles
protected

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