GlobeEngine
|
#include <DrawableComponent.h>
Public Types | |
enum | RENDERSTATE { STENCILPASS, DEPTHPASS, RENDER, OCCLUSIONTEST, OCCLUSIONGROUNDTEST, OCCLUSIONRESULT, EMPTY, DECALPASS } |
Public Member Functions | |
DrawableComponent () | |
~DrawableComponent () | |
DrawableComponent (const DrawableComponent &_in)=delete | |
DrawableComponent & | operator= (const DrawableComponent &_in)=delete |
virtual void | clear () |
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 BoundingSphere * | getBoundingSphere () const |
const BoundingBox3d * | getBoundingBox () 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::Shader > | getShader () 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 |
virtual void | create ()=0 |
virtual void | update ()=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) |
ge::DrawableComponent::DrawableComponent | ( | ) |
ge::DrawableComponent::~DrawableComponent | ( | ) |
|
delete |
void ge::DrawableComponent::addCustomVertexAttributef | ( | unsigned int | _bufferPos, |
unsigned int | _attributeCount, | ||
unsigned int | _sizePerAttribute, | ||
float ** | _values | ||
) |
void ge::DrawableComponent::addVertex3fAttribute | ( | unsigned int | _bufferPos, |
unsigned int | _size, | ||
const vmml::Vector3d | _value | ||
) |
void ge::DrawableComponent::addVertex3fAttribute | ( | unsigned int | _bufferPos, |
unsigned int | _size, | ||
const vmml::Vector3d * | _values | ||
) |
void ge::DrawableComponent::beginOcclusionQuery | ( | RENDERSTATE | _state | ) |
|
virtual |
Reimplemented from ge::GlobeComponent.
Reimplemented in geData::DouglasPeuckerDrawablePath, geGIS::TrafficObject, geGIS::ReferenceSystem, ge::ViewFrustum, geGIS::FeatureObject, geAstro::SmallBody, geGIS::CommuterObject, geAstro::Planet, geRaster::QuadPatchField, geFlow::ArrowField, geData::MultiPolygonObject, geGIS::PolygonFeatureObject, geClimateViewer::Streamlines, geData::DrawablePolyLine, geData::MultiLineObject, geData::PointCloud, ge::Plane, geRaster::KPatchBintree, geAstro::HabitableZone, geAstro::Moon, geClimateViewer::VectorFieldTopology, geClimateViewer::PolyLineExt, ge::Composition, geData::Mesh, geGIS::BundlingObject, geGIS::GreatCircle, geGIS::LineFeatureObject, geGIS::TrafficInfoObject, geGIS::ChartObject, geGIS::NamesObject, geUtil::DrawableGrid, geData::Heightfield, geGIS::PointFeatureObject, geGIS::CoatOfArmsObject, geUtil::DebugMap, geHikingViewer::HikingInfoWindow, ge::Ring, ge::Skybox, geGIS::BorderObject, geGIS::HousingObject, ge::Sphere, geData::PolygonZ, ge::CoordinateSystem, geGIS::Globe, ge::Cylinder, ge::Flag, ge::HorizontalCone, ge::Cone, ge::Cube, geAstro::OrbitCollection, geAstro::OrbitDrawable, geAstro::SmallBodyPointCloud, geAstro::UnitCircles, geAstro::Star, and geAstro::OverviewPointCloud.
void ge::DrawableComponent::createMultiDrawPointerList | ( | GLuint | _numberOfDrawObjects, |
GLsizei * | _stripLenghts | ||
) |
void ge::DrawableComponent::createMultiDrawPointerList | ( | GLuint | _numberOfDrawObjects, |
GLsizei | _stripLenghts | ||
) |
void ge::DrawableComponent::disablePointSprites | ( | ) |
void ge::DrawableComponent::disablePrimitiveRestart | ( | ) |
|
virtual |
Reimplemented in ge::ViewFrustum, ge::Composition, ge::Sphere, ge::Ring, ge::Skybox, ge::CoordinateSystem, ge::Flag, ge::Cylinder, ge::HorizontalCone, ge::Cone, and ge::Cube.
void ge::DrawableComponent::drawArrays | ( | GLenum | _mode, |
GLint | _first, | ||
GLsizei | _count | ||
) |
void ge::DrawableComponent::drawElements | ( | GLenum | _mode, |
GLsizei | _count, | ||
const GLvoid * | _indices | ||
) |
void ge::DrawableComponent::drawMultiArrays | ( | GLenum | _mode, |
const GLsizei * | _count, | ||
GLsizei | _drawcount | ||
) |
void ge::DrawableComponent::drawMultiElements | ( | GLenum | _mode, |
const GLsizei * | _count, | ||
GLsizei | _drawcount | ||
) |
Reimplemented in geData::DouglasPeuckerDrawablePath, and geGIS::BundlingObject.
void ge::DrawableComponent::enablePointSprites | ( | ) |
void ge::DrawableComponent::enablePrimitiveRestart | ( | ) |
assuming that for standard pipeline vertex position and color is needed
void ge::DrawableComponent::endOcclusionQuery | ( | RENDERSTATE | _state | ) |
void ge::DrawableComponent::fillIndexBufferWithLinearValues | ( | ) |
const BoundingBox3d * ge::DrawableComponent::getBoundingBox | ( | ) | const |
const BoundingSphere * ge::DrawableComponent::getBoundingSphere | ( | ) | const |
const vmml::Vector3f ge::DrawableComponent::getColor | ( | ) | const |
|
inline |
GLuint ge::DrawableComponent::getDepthTextureHandle | ( | ) | const |
vmml::Matrix4d ge::DrawableComponent::getInverseModelMatrix | ( | ) | const |
vmml::Matrix4d ge::DrawableComponent::getModelMatrix | ( | ) | const |
GLuint ge::DrawableComponent::getNormalTextureHandle | ( | ) | const |
vmml::Vector3d ge::DrawableComponent::getPosition | ( | ) | const |
GLuint ge::DrawableComponent::getQueryResult | ( | ) |
vmml::Vector3d ge::DrawableComponent::getRotation | ( | ) | const |
vmml::Vector3d ge::DrawableComponent::getScale | ( | ) | const |
const std::shared_ptr< ge::Shader > ge::DrawableComponent::getShader | ( | ) | const |
GLuint ge::DrawableComponent::getTextureHandle | ( | ) | const |
|
inline |
bool ge::DrawableComponent::isGeometryReady | ( | ) | const |
bool ge::DrawableComponent::isNormalMapped | ( | ) |
bool ge::DrawableComponent::isTextured | ( | ) |
bool ge::DrawableComponent::isVisible | ( | ) | const |
|
delete |
void ge::DrawableComponent::recompileShader | ( | ) |
void ge::DrawableComponent::setBoundingBox | ( | BoundingBox3d | _boundingBox | ) |
void ge::DrawableComponent::setBoundingSphere | ( | BoundingSphere | _boundingSphere | ) |
|
virtual |
Reimplemented in geGIS::LineFeatureObject, geData::PointCloud, geClimateViewer::PolyLineExt, and geGIS::PointFeatureObject.
Reimplemented in geGIS::LineFeatureObject, and geGIS::PointFeatureObject.
void ge::DrawableComponent::setDepthMatrix | ( | vmml::Matrix4d | _mat | ) |
void ge::DrawableComponent::setDepthMatrixUniform | ( | ) |
void ge::DrawableComponent::setDepthTextureHandle | ( | GLuint | _handle | ) |
void ge::DrawableComponent::setDepthUniforms | ( | ) |
void ge::DrawableComponent::setModelMatrices | ( | ) |
void ge::DrawableComponent::setMVPMatrix | ( | const std::shared_ptr< ge::Camera > | _cam | ) |
void ge::DrawableComponent::setNormalMatrix | ( | ) |
void ge::DrawableComponent::setNormalTextureHandle | ( | GLuint | _handle | ) |
void ge::DrawableComponent::setPickingInformation | ( | ) |
|
virtual |
Reimplemented in geGIS::LineFeatureObject, geGIS::PointFeatureObject, and ge::Skybox.
void ge::DrawableComponent::setPrimitiveRestartIndex | ( | GLuint | _in | ) |
|
virtual |
Reimplemented in geGIS::LineFeatureObject, at::Planet, geGIS::PointFeatureObject, ge::Sphere, and at::PlanetNight.
|
virtual |
Reimplemented in geGIS::LineFeatureObject, and geGIS::PointFeatureObject.
|
virtual |
void ge::DrawableComponent::setStandardUniforms | ( | ) |
void ge::DrawableComponent::setTextureHandle | ( | GLuint | _handle | ) |
void ge::DrawableComponent::setVertexAttributePointer | ( | GLuint | _bufferID, |
GLuint | _index, | ||
GLint | _size, | ||
GLenum | _type | ||
) |
void ge::DrawableComponent::setVertexAttributePointerForBuffer | ( | unsigned int | _bufferID, |
unsigned int | _size, | ||
GLenum | _type | ||
) |
void ge::DrawableComponent::setVertexAttributePointerNormalized | ( | GLuint | _bufferID, |
GLuint | _index, | ||
GLint | _size, | ||
GLenum | _type | ||
) |
void ge::DrawableComponent::setVertexLongAttributePointer | ( | GLuint | _bufferID, |
GLuint | _index, | ||
GLint | _size, | ||
GLenum | _type | ||
) |
void ge::DrawableComponent::setViewProjMatrices | ( | const std::shared_ptr< ge::Camera > | _cam | ) |
void ge::DrawableComponent::unbindVertexBuffers | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |