GlobeEngine
geGIS::FeatureObject Class Referenceabstract

#include <FeatureObject.h>

Inheritance diagram for geGIS::FeatureObject:
ge::DrawableComponent ge::GlobeComponent geGIS::LineFeatureObject geGIS::PointFeatureObject geGIS::PolygonFeatureObject geGIS::BorderObject geGIS::BundlingObject geGIS::CommuterObject geGIS::GreatCircle geGIS::ReferenceSystem geGIS::TrafficObject geGIS::ChartObject geGIS::NamesObject geGIS::TrafficInfoObject geGIS::CoatOfArmsObject geGIS::HousingObject

Public Types

enum  GEOMETRYDRAWMODE {
  LINES =0, TRIANGLES_OVERLAPPING, EXTRUDED_GEOMETRY, RIBBON,
  TRIANGULATED, POINTS
}
 
enum  FEATUREFORMAT { SHP =0, JSON, CSV, NONE }
 
enum  FEATURETYPE {
  NOTYPE =0, POINT, MULTIPOINT, LINE,
  MULTILINE, POLYGON, MULTIPOLYGON
}
 
- Public Types inherited from ge::DrawableComponent
enum  RENDERSTATE {
  STENCILPASS, DEPTHPASS, RENDER, OCCLUSIONTEST,
  OCCLUSIONGROUNDTEST, OCCLUSIONRESULT, EMPTY, DECALPASS
}
 

Public Member Functions

 FeatureObject ()
 
virtual ~FeatureObject ()
 
virtual void clear ()
 
virtual void create ()
 
virtual void update ()=0
 
virtual void draw (std::shared_ptr< ge::Camera > _cam)=0
 
virtual void createVAO (enum GEOMETRYDRAWMODE _in)=0
 
vmml::Vector4d getBounds2D () const
 
vmml::Vector3d getMinBounds () const
 
vmml::Vector3d getMaxBounds () const
 
vmml::Vector3d getEdgeLength () const
 
int getShapeType () const
 
enum GEOMETRYDRAWMODE getDrawMode () const
 
int getEntityCount () const
 
int getEdgeCount () const
 
int getLocationPointCount () const
 
void exportToSHPFile (std::string _path, enum shpio::SHPFileExportContainer::EXPORT_TYPE _type, shpio::SHPFileExportContainer *_content)
 
void exportToCSVFile (std::string _path, enum shpio::SHPFileExportContainer::EXPORT_TYPE _type, shpio::SHPFileExportContainer *_content)
 
void loadDatabaseFields ()
 
enum FEATUREFORMAT getFormatFromString (std::string _input)
 
std::string getStringForFormat (enum FEATUREFORMAT _input)
 
enum FEATUREFORMAT checkForFileWithStandardExtension (std::string _input)
 
char getFieldType (int _fieldnumber)
 
std::vector< std::string > getFieldNames ()
 
intreadIntegerFieldFromDBFtoArray (int _fieldnumber)
 
template<typename T >
std::vector< T > readStringField (int _fieldnumber)
 
template<typename T >
std::vector< T > readNumericField (int _fieldnumber)
 
float getWheightMax () const
 
float getWheightMin () const
 
void saveFeature (std::string _path, std::string _ext)
 
const tileService::TileFeatureService * getTFSInfo ()
 
vmml::Vector3d getMidpointOfBounds ()
 
vmml::Vector2d getMidpointOfBoundsProj2D ()
 
void setTextColor (vmml::Vector3f _textcolor)
 
vmml::Vector3f getTextColor () const
 
std::shared_ptr< StyleCollectiongetStyleCollection () const
 
- 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)
 

Protected Member Functions

void deleteMemory ()
 
void setupInitialShapeData (std::string _filename, std::string _driver, geGIS::FeatureRange _entRange)
 
void setupInitialTFSData (std::string _filename, int _minlod, int _maxlod)
 
virtual shpio::SHPFileExportContainer * getExportContainer (std::shared_ptr< ReferenceSystem > _referenceSystem)
 
void checkForBoundaries ()
 
void setEntityRanges (geGIS::FeatureRange _entRange)
 
void print ()
 
void setFeatureType (std::string _type)
 
void loadDataFromSHP (std::string filename)
 

Protected Attributes

GEOMETRYDRAWMODE drawMode
 
FEATURETYPE featureType
 
FEATUREFORMAT featureFormat
 
int shapetype
 
int numberOfEntities
 
int numberOfEdges
 
int numberOfLocations
 
geGIS::FeatureRange entityRange
 
double bounds [6]
 
vmml::Vector3d midPoint
 
double edgelength [3]
 
std::shared_ptr< ReferenceSystemreferenceSystem
 
std::vector< vmml::Vector3d > feature_vec
 
std::vector< intshapeVecIdx
 
std::vector< SHPObject * > shape_vec
 
SHPHandle shapehandle
 
shpio::DBFDataContainer datatable
 
vmml::Vector3f textColor
 
float weightMax
 
float weightMin
 
vmml::Vector3f blueprintColor
 
bool isRepository
 
tileService::TileFeatureService tfsloader
 
std::string fileUrl
 
std::shared_ptr< StyleCollectionvectorStyling
 
- 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
SHP 
JSON 
CSV 
NONE 
Enumerator
NOTYPE 
POINT 
MULTIPOINT 
LINE 
MULTILINE 
POLYGON 
MULTIPOLYGON 
Enumerator
LINES 
TRIANGLES_OVERLAPPING 
EXTRUDED_GEOMETRY 
RIBBON 
TRIANGULATED 
POINTS 

Constructor & Destructor Documentation

geGIS::FeatureObject::FeatureObject ( )
geGIS::FeatureObject::~FeatureObject ( )
virtual

Member Function Documentation

void geGIS::FeatureObject::checkForBoundaries ( )
protected
enum FeatureObject::FEATUREFORMAT geGIS::FeatureObject::checkForFileWithStandardExtension ( std::string  _input)
void geGIS::FeatureObject::create ( )
virtual

Implements ge::GlobeComponent.

Reimplemented in geGIS::PolygonFeatureObject.

virtual void geGIS::FeatureObject::createVAO ( enum GEOMETRYDRAWMODE  _in)
pure virtual
void geGIS::FeatureObject::deleteMemory ( )
protected
void geGIS::FeatureObject::exportToCSVFile ( std::string  _path,
shpio::SHPFileExportContainer::EXPORT_TYPE  _type,
shpio::SHPFileExportContainer *  _content 
)
void geGIS::FeatureObject::exportToSHPFile ( std::string  _path,
shpio::SHPFileExportContainer::EXPORT_TYPE  _type,
shpio::SHPFileExportContainer *  _content 
)
vmml::Vector4d geGIS::FeatureObject::getBounds2D ( ) const

get Feature bounds in 2D Interpreted as: minx, minz, maxx, maxz

enum GEOMETRYDRAWMODE geGIS::FeatureObject::getDrawMode ( ) const
inline
int geGIS::FeatureObject::getEdgeCount ( ) const
vmml::Vector3d geGIS::FeatureObject::getEdgeLength ( ) const
int geGIS::FeatureObject::getEntityCount ( ) const
shpio::SHPFileExportContainer * geGIS::FeatureObject::getExportContainer ( std::shared_ptr< ReferenceSystem _referenceSystem)
protectedvirtual
std::vector< std::string > geGIS::FeatureObject::getFieldNames ( )
char geGIS::FeatureObject::getFieldType ( int  _fieldnumber)
enum FeatureObject::FEATUREFORMAT geGIS::FeatureObject::getFormatFromString ( std::string  _input)
int geGIS::FeatureObject::getLocationPointCount ( ) const
vmml::Vector3d geGIS::FeatureObject::getMaxBounds ( ) const
vmml::Vector3d geGIS::FeatureObject::getMidpointOfBounds ( )
vmml::Vector2d geGIS::FeatureObject::getMidpointOfBoundsProj2D ( )
vmml::Vector3d geGIS::FeatureObject::getMinBounds ( ) const
int geGIS::FeatureObject::getShapeType ( ) const
std::string geGIS::FeatureObject::getStringForFormat ( FeatureObject::FEATUREFORMAT  _input)
std::shared_ptr< StyleCollection > geGIS::FeatureObject::getStyleCollection ( ) const
vmml::Vector3f geGIS::FeatureObject::getTextColor ( ) const
const tileService::TileFeatureService* geGIS::FeatureObject::getTFSInfo ( )
inline
float geGIS::FeatureObject::getWheightMax ( ) const
float geGIS::FeatureObject::getWheightMin ( ) const
void geGIS::FeatureObject::loadDatabaseFields ( )
void geGIS::FeatureObject::loadDataFromSHP ( std::string  filename)
protected
void geGIS::FeatureObject::print ( )
protected
int* geGIS::FeatureObject::readIntegerFieldFromDBFtoArray ( int  _fieldnumber)
inline
template<typename T >
std::vector<T> geGIS::FeatureObject::readNumericField ( int  _fieldnumber)
inline
template<typename T >
std::vector<T> geGIS::FeatureObject::readStringField ( int  _fieldnumber)
inline
void geGIS::FeatureObject::saveFeature ( std::string  _path,
std::string  _ext 
)

save this feature as line feature according according to the extension

Parameters
_path- path to the file with filename and extension
_ext- the extension
void geGIS::FeatureObject::setEntityRanges ( geGIS::FeatureRange  _entRange)
protected
void geGIS::FeatureObject::setFeatureType ( std::string  _type)
protected
void geGIS::FeatureObject::setTextColor ( vmml::Vector3f  _textcolor)
void geGIS::FeatureObject::setupInitialShapeData ( std::string  _filename,
std::string  _driver,
geGIS::FeatureRange  _entRange 
)
protected
void geGIS::FeatureObject::setupInitialTFSData ( std::string  _filename,
int  _minlod,
int  _maxlod 
)
protected

Member Data Documentation

vmml::Vector3f geGIS::FeatureObject::blueprintColor
protected
double geGIS::FeatureObject::bounds[6]
protected

Feature bounds in 3D Interpreted as: minx, miny,minz, maxx, maxy, maxz

shpio::DBFDataContainer geGIS::FeatureObject::datatable
protected
GEOMETRYDRAWMODE geGIS::FeatureObject::drawMode
protected
double geGIS::FeatureObject::edgelength[3]
protected
geGIS::FeatureRange geGIS::FeatureObject::entityRange
protected
std::vector< vmml::Vector3d > geGIS::FeatureObject::feature_vec
protected
FEATUREFORMAT geGIS::FeatureObject::featureFormat
protected
FEATURETYPE geGIS::FeatureObject::featureType
protected
std::string geGIS::FeatureObject::fileUrl
protected
bool geGIS::FeatureObject::isRepository
protected
vmml::Vector3d geGIS::FeatureObject::midPoint
protected
int geGIS::FeatureObject::numberOfEdges
protected
int geGIS::FeatureObject::numberOfEntities
protected
int geGIS::FeatureObject::numberOfLocations
protected
std::shared_ptr<ReferenceSystem> geGIS::FeatureObject::referenceSystem
protected
std::vector<SHPObject*> geGIS::FeatureObject::shape_vec
protected
SHPHandle geGIS::FeatureObject::shapehandle
protected
int geGIS::FeatureObject::shapetype
protected
std::vector< int > geGIS::FeatureObject::shapeVecIdx
protected
vmml::Vector3f geGIS::FeatureObject::textColor
protected
tileService::TileFeatureService geGIS::FeatureObject::tfsloader
protected
std::shared_ptr<StyleCollection> geGIS::FeatureObject::vectorStyling
protected
float geGIS::FeatureObject::weightMax
protected
float geGIS::FeatureObject::weightMin
protected

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