GlobeEngine
geHikingViewer::HikingFrameBufferObject Class Reference

#include <HikingFrameBufferObject.h>

Inheritance diagram for geHikingViewer::HikingFrameBufferObject:
ge::FrameBufferObject

Public Member Functions

 HikingFrameBufferObject ()
 
 ~HikingFrameBufferObject ()
 
vmml::Vector4d getWorldPosition (int _x, int _y, std::shared_ptr< ge::Camera > _cam)
 
std::vector< std::vector< float > > calculateHeights (vmml::Vector2f oldMP, vmml::Vector2f newMP, float heightThreshold, std::shared_ptr< ge::Camera > _cam)
 
int calculateDangerZone (vmml::Vector2f oldMP, vmml::Vector2f newMP, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection, std::shared_ptr< ge::Camera > _cam)
 
int calculateDangerLine (vmml::Vector2f oldMP, vmml::Vector2f newMP, bool isMainLine, float directionToLine, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection, float sampling)
 
int getDangerPointLevel (int x, int y, bool isMainLine, float directionToLine, int riskLevel, float heightThreshold, float dangerOrientation, float dangerSection)
 
- Public Member Functions inherited from ge::FrameBufferObject
 FrameBufferObject ()
 
virtual ~FrameBufferObject ()
 
void clear ()
 
void setupFrameBuffer (vmml::Vector2i _size)
 
void resizeFrameBuffer (vmml::Vector2i _size)
 
void createBasicBuffersAndColorBuffers (vmml::Vector2i _size, int _channels)
 
void createBasicBufferSetup (vmml::Vector2i _size)
 
void createDepthBuffer (vmml::Vector2i _size)
 
void createStencilBuffer (vmml::Vector2i _size, int _channels=3)
 
void createGBuffer (vmml::Vector2i _size)
 
void createGBufferWithIDLayer (vmml::Vector2i _size)
 
void addLayerType (ge::TextureProperties2D _prop)
 
void bind ()
 
void release ()
 
const std::shared_ptr< TextureHandlegetColorTexture (GLint _index) const
 
void getOpenGLError (std::string _input)
 
GLubyte * getPickingResult (int _x, int _y, int _w, int _h, GLint _layer=2)
 
GLfloat * getPickingResultf (int _x, int _y, int _w, int _h, GLint _layer=2)
 
void saveFramebufferToFile (std::string _filePath)
 
int getStandardFramebufferID ()
 
int lookupStandardFramebufferID ()
 
void setStandardFramebufferID (int _id)
 
int getWidth () const
 
int getHeight () const
 
void printMaximumSizes ()
 

Additional Inherited Members

- Public Types inherited from ge::FrameBufferObject
enum  FBOTYPE {
  NORMAL =0, COLOR, STENCIL_ONLY, DEPTH_ONLY,
  DEPTH_STENCIL, HDR_ONLY
}
 
- Public Attributes inherited from ge::FrameBufferObject
enum ge::FrameBufferObject::FBOTYPE FBOTYPE
 
- Protected Member Functions inherited from ge::FrameBufferObject
void setSize (int _width, int _height)
 
void createFrameBufferHandle ()
 
void setupTextureChannels ()
 
void attachColorChannels ()
 
void addTextureChannel (ge::TextureProperties2D _prop, std::string _name="")
 
void createBasicLayerSetup ()
 
void attachTextureToFramebuffer (GLenum _attachement, GLenum _textarget, GLuint _texHandle, GLint _level)
 
void callDrawBuffers ()
 
void checkFramebufferStatus ()
 
void setupRenderBuffer (GLenum _internalFormat, GLenum _assignedAttachement)
 
void deleteMemory ()
 
void deletePickbuffer ()
 
void deleteFrameBufferHandle ()
 
void retrievePickResult (int _x, int _y, int _w, int _h, GLint _layer, GLenum _format, GLenum _type)
 
- Protected Attributes inherited from ge::FrameBufferObject
RenderBufferObject rbo
 
GLuint fboId
 
GLuint sboId
 
GLenum * colorBuffers
 
std::vector< ge::TextureProperties2Dlayertypes
 
std::vector< std::shared_ptr< ge::TextureHandle > > colorMaps
 
ge::DepthMap2Drgba stencilMap
 
GLsizei width
 
GLsizei height
 
union {
   GLvoid *   notype
 
   GLfloat *   alpha
 
   GLubyte *   rgba
 
pickdata
 
int standardFBOid
 

Constructor & Destructor Documentation

geHikingViewer::HikingFrameBufferObject::HikingFrameBufferObject ( )
geHikingViewer::HikingFrameBufferObject::~HikingFrameBufferObject ( )

Member Function Documentation

int geHikingViewer::HikingFrameBufferObject::calculateDangerLine ( vmml::Vector2f  oldMP,
vmml::Vector2f  newMP,
bool  isMainLine,
float  directionToLine,
int  riskLevel,
float  heightThreshold,
float  dangerOrientation,
float  dangerSection,
float  sampling 
)
int geHikingViewer::HikingFrameBufferObject::calculateDangerZone ( vmml::Vector2f  oldMP,
vmml::Vector2f  newMP,
int  riskLevel,
float  heightThreshold,
float  dangerOrientation,
float  dangerSection,
std::shared_ptr< ge::Camera _cam 
)
std::vector< std::vector< float > > geHikingViewer::HikingFrameBufferObject::calculateHeights ( vmml::Vector2f  oldMP,
vmml::Vector2f  newMP,
float  heightThreshold,
std::shared_ptr< ge::Camera _cam 
)
int geHikingViewer::HikingFrameBufferObject::getDangerPointLevel ( int  x,
int  y,
bool  isMainLine,
float  directionToLine,
int  riskLevel,
float  heightThreshold,
float  dangerOrientation,
float  dangerSection 
)
vmml::Vector4d geHikingViewer::HikingFrameBufferObject::getWorldPosition ( int  _x,
int  _y,
std::shared_ptr< ge::Camera _cam 
)

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