Classes | Public Member Functions | List of all members
SkyX::VClouds::GeometryBlock Class Reference

#include <GeometryBlock.h>

Classes

struct  VERTEX
 Vertex struct. More...
 

Public Member Functions

 GeometryBlock (VClouds *vc, const float &Height, const Ogre::Radian &Alpha, const Ogre::Radian &Beta, const float &Radius, const Ogre::Radian &Phi, const int &Na, const int &Nb, const int &Nc, const int &A, const int &B, const int &C, const int &Position)
 Constructor. More...
 
 ~GeometryBlock ()
 Destructor. More...
 
void create ()
 Create. More...
 
Ogre::Entity * getEntity ()
 Get entity. More...
 
Ogre::HardwareIndexBufferSharedPtr & getHardwareIndexBuffer ()
 Get hardware index buffer reference. More...
 
Ogre::HardwareVertexBufferSharedPtr & getHardwareVertexBuffer ()
 Get hardware vertex buffer reference. More...
 
Ogre::MeshPtr getMesh ()
 Get mesh. More...
 
Ogre::SubMesh * getSubMesh ()
 Get sub mesh. More...
 
const bool & isCreated () const
 Has been create() already called? More...
 
bool isInFrustum (Ogre::Camera *c) const
 Is the geometry block inside the camera frustum? More...
 
void remove ()
 Remove. More...
 
void setWorldOffset (const Ogre::Vector2 &WorldOffset)
 Set world offset. More...
 
void updateGeometry (Ogre::Camera *c, const Ogre::Vector3 &displacement)
 Update geometry. More...
 

Constructor & Destructor Documentation

SkyX::VClouds::GeometryBlock::GeometryBlock ( VClouds vc,
const float &  Height,
const Ogre::Radian &  Alpha,
const Ogre::Radian &  Beta,
const float &  Radius,
const Ogre::Radian &  Phi,
const int &  Na,
const int &  Nb,
const int &  Nc,
const int &  A,
const int &  B,
const int &  C,
const int &  Position 
)

Constructor.

Parameters
vcVClouds pointer
HeightField height (in woorld coordinates)
AlphaAlpha angle
BetaBeta angle
RadiusTotal radius
PhiActimutal angle
NaNumber of slices in A zone
NbNumber of slices in B zone
NcNumber of slices in C zone
AA radius
BB radius
CC radius
SkyX::VClouds::GeometryBlock::~GeometryBlock ( )

Destructor.

Member Function Documentation

void SkyX::VClouds::GeometryBlock::create ( )

Create.

Ogre::Entity* SkyX::VClouds::GeometryBlock::getEntity ( )
inline

Get entity.

Returns
Entity
Ogre::HardwareIndexBufferSharedPtr& SkyX::VClouds::GeometryBlock::getHardwareIndexBuffer ( )
inline

Get hardware index buffer reference.

Returns
Ogre::HardwareIndexBufferSharedPtr reference
Ogre::HardwareVertexBufferSharedPtr& SkyX::VClouds::GeometryBlock::getHardwareVertexBuffer ( )
inline

Get hardware vertex buffer reference.

Returns
Ogre::HardwareVertexBufferSharedPtr reference
Ogre::MeshPtr SkyX::VClouds::GeometryBlock::getMesh ( )
inline

Get mesh.

Returns
Mesh
Ogre::SubMesh* SkyX::VClouds::GeometryBlock::getSubMesh ( )
inline

Get sub mesh.

Returns
Sub mesh
const bool& SkyX::VClouds::GeometryBlock::isCreated ( ) const
inline

Has been create() already called?

Returns
true if created() have been already called, false if not

References SkyX::mCreated.

bool SkyX::VClouds::GeometryBlock::isInFrustum ( Ogre::Camera *  c) const

Is the geometry block inside the camera frustum?

Parameters
cCamera
Returns
true if yes, false if not
void SkyX::VClouds::GeometryBlock::remove ( )

Remove.

void SkyX::VClouds::GeometryBlock::setWorldOffset ( const Ogre::Vector2 &  WorldOffset)
inline

Set world offset.

Parameters
WorldOffsetWorld offset
void SkyX::VClouds::GeometryBlock::updateGeometry ( Ogre::Camera *  c,
const Ogre::Vector3 &  displacement 
)

Update geometry.

Parameters
cCamera
displacementCurrent offset in world units per zone

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