VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtProjected2DLineEffect Class Reference

An effect for rendering 2D projected lines Has support for direction and length information per vertex. More...

Inheritance diagram for makVrv::DtProjected2DLineEffect:
Inheritance graph
[legend]

Public Member Functions

 DtProjected2DLineEffect (const std::string &dataPath)
 CTOR. More...
 
virtual ~DtProjected2DLineEffect ()
 DTOR. More...
 
virtual void setCamera (bool geocentric, float geocentricAlpha, const double position[3], const double positionMatrix[16], const double projectionMatrix[16])
 Set the camera position. More...
 
virtual void setGroupCount (unsigned int count)
 Set the number of groups. More...
 
virtual void setVertexAttribPointers (size_t stride, const VertexAttribPtrInfo &positionAddress, const VertexAttribPtrInfo &colorAddress, const VertexAttribPtrInfo &offsetAddress, const VertexAttribPtrInfo &directionAndLengthAddress)
 
virtual void unsetVertexAttribPointers ()
 
- Public Member Functions inherited from makVrv::Dt2DEffect
 Dt2DEffect (const std::string &dataPath)
 CTOR. More...
 
virtual ~Dt2DEffect ()
 Virtual DTOR. More...
 
- Public Member Functions inherited from makVrv::DtEffect
 DtEffect (const std::string &dataPath)
 CTOR. More...
 
virtual ~DtEffect ()
 DTORs. More...
 
void releaseResources ()
 Release and HW resources of the effect. More...
 
bool enabled () const
 Is the effect enabled. More...
 
bool enable ()
 
void disable ()
 

Protected Member Functions

virtual void updateUniformLocations ()
 
virtual void updateUniforms ()
 
virtual void initializeShaderSource (void)
 Virtual abstract Interface. More...
 
void updateOtherUniforms (void)
 
- Protected Member Functions inherited from makVrv::DtEffect
bool compileShaders (void)
 Compile the shaders. More...
 

Protected Attributes

int myUniform_CameraPos
 
int myUniform_CameraMat
 
int myUniform_ProjectionMat
 
int myUniform_GroupCount
 
int myUniform_Sphere
 
int myUniform_OccludedAlpha
 
unsigned int myUnit
 
unsigned int myGroupCount
 
double myCameraPos [3]
 
double myMatrix [16]
 
double myProjectionMatrix [16]
 
bool myGeocentricFlag
 
float myGeocentricAlpha
 
- Protected Attributes inherited from makVrv::DtEffect
std::string myName
 
bool myEnabledFlag
 
unsigned int myProgram
 
unsigned int myVertexShader
 
unsigned int myFragmentShader
 
std::string myVertexShaderSource
 
std::string myVertexShaderName
 
std::string myFragmentShaderSource
 
std::string myFragmentShaderName
 
std::string myGeometryShaderSource
 
std::string myDataPath
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtEffect
static std::string loadShaderSource (const std::string &strFileName)
 

Detailed Description

An effect for rendering 2D projected lines Has support for direction and length information per vertex.

Constructor & Destructor Documentation

makVrv::DtProjected2DLineEffect::DtProjected2DLineEffect ( const std::string &  dataPath)

CTOR.

virtual makVrv::DtProjected2DLineEffect::~DtProjected2DLineEffect ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtProjected2DLineEffect::setCamera ( bool  geocentric,
float  geocentricAlpha,
const double  position[3],
const double  positionMatrix[16],
const double  projectionMatrix[16] 
)
virtual

Set the camera position.

Implements makVrv::Dt2DEffect.

virtual void makVrv::DtProjected2DLineEffect::setGroupCount ( unsigned int  count)
virtual

Set the number of groups.

Implements makVrv::Dt2DEffect.

virtual void makVrv::DtProjected2DLineEffect::setVertexAttribPointers ( size_t  stride,
const VertexAttribPtrInfo positionAddress,
const VertexAttribPtrInfo colorAddress,
const VertexAttribPtrInfo offsetAddress,
const VertexAttribPtrInfo directionAndLengthAddress 
)
virtual
virtual void makVrv::DtProjected2DLineEffect::unsetVertexAttribPointers ( )
virtual
virtual void makVrv::DtProjected2DLineEffect::updateUniformLocations ( )
protectedvirtual

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DLineEffect::updateUniforms ( )
protectedvirtual

Implements makVrv::DtEffect.

virtual void makVrv::DtProjected2DLineEffect::initializeShaderSource ( void  )
protectedvirtual

Virtual abstract Interface.

Implements makVrv::DtEffect.

void makVrv::DtProjected2DLineEffect::updateOtherUniforms ( void  )
protected

Member Data Documentation

int makVrv::DtProjected2DLineEffect::myUniform_CameraPos
protected
int makVrv::DtProjected2DLineEffect::myUniform_CameraMat
protected
int makVrv::DtProjected2DLineEffect::myUniform_ProjectionMat
protected
int makVrv::DtProjected2DLineEffect::myUniform_GroupCount
protected
int makVrv::DtProjected2DLineEffect::myUniform_Sphere
protected
int makVrv::DtProjected2DLineEffect::myUniform_OccludedAlpha
protected
unsigned int makVrv::DtProjected2DLineEffect::myUnit
protected
unsigned int makVrv::DtProjected2DLineEffect::myGroupCount
protected
double makVrv::DtProjected2DLineEffect::myCameraPos[3]
protected
double makVrv::DtProjected2DLineEffect::myMatrix[16]
protected
double makVrv::DtProjected2DLineEffect::myProjectionMatrix[16]
protected
bool makVrv::DtProjected2DLineEffect::myGeocentricFlag
protected
float makVrv::DtProjected2DLineEffect::myGeocentricAlpha
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)