VEE_Polygon Class Reference

#include <vee_polygon.h>

Inheritance diagram for VEE_Polygon:

Inheritance graph
[legend]
Collaboration diagram for VEE_Polygon:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Static Public Member Functions

Protected Member Functions

Protected Attributes


Constructor & Destructor Documentation

VEE_Polygon::VEE_Polygon  ) 
 

VEE_Polygon::VEE_Polygon uint  num,
const VEE_Vector3 positions,
uint  numTri,
const uint *  indices,
const VEE_Vector3 velocity,
float  ageLimit,
int  material = -1,
VEE_Looks looks = 0
 

VEE_Polygon::~VEE_Polygon  )  [virtual]
 


Member Function Documentation

bool VEE_Polygon::setValue const char *  id,
VEE_Value msg
[virtual]
 

Receive and process a value.

Parameters:

  • "velocity", Vector3

  • "addvelocity", Vector3

  • "location", Vector3

  • "addlocation", Vector3

  • "agelimit", float, range: 0 to inf

  • "material", int, range: 0 to inf

  • "stiffness", float, range: 0 to inf

Reimplemented from VEE_Particle.

VEE_Polygon * VEE_Polygon::clone  )  const [virtual]
 

Reimplemented from VEE_Particle.

VEE_Polygon * VEE_Polygon::createNewMesh const uint  horizontalDivisions,
const uint  verticalDivisions,
float  width = 1.0,
float  height = 1.0,
float  ageLimit = 10000.0
[static]
 

VEE_Polygon * VEE_Polygon::createNewQuadMesh const uint  horizontalDivisions,
const uint  verticalDivisions,
float  width = 1.0,
float  height = 1.0,
float  ageLimit = 10000.0
[static]
 

void VEE_Polygon::resetLinks  )  [virtual]
 

Set default links based on m_indices.

void VEE_Polygon::resetDistances  )  [virtual]
 

Calculate optimal distances based on present vertex array.

void VEE_Polygon::updateVelocity float  dt  )  [virtual]
 

Get forces acting on this objects and add these vectors to velocity.

Reimplemented from VEE_Object.

void VEE_Polygon::update float  dt  )  [virtual]
 

Update the location of this object.

Reimplemented from VEE_Particle.

void VEE_Polygon::printTextureUV  ) 
 

void VEE_Polygon::transform const VEE_Matrix3  ) 
 

void VEE_Polygon::move const VEE_Vector3  ) 
 

void VEE_Polygon::render VEE_Renderer  )  [virtual]
 

Reimplemented from VEE_Particle.

virtual void VEE_Polygon::setStiffness float  s  )  [inline, virtual]
 

virtual void VEE_Polygon::setTextureCoordinates const std::vector< VEE_Vector2 > &  coords  )  [inline, virtual]
 

Set vertices, indices and initialize default links.

virtual void VEE_Polygon::setLinks std::vector< uint >  links  )  [inline, virtual]
 

Set links. Input consists of pairs of indices. Tensions are evaluated only on the defined links.

void VEE_Polygon::setVelocity const VEE_Vector3 v  )  [virtual]
 

Reimplemented from VEE_ParticleVisualInfo.

uint VEE_Polygon::vertexCount  )  const [inline]
 

VEE_Vector3& VEE_Polygon::getVertex uint  i  )  [inline]
 

uint VEE_Polygon::triangleCount  )  const [inline]
 

const uint* VEE_Polygon::getTriangle uint  i  )  const [inline]
 

VEE_Vector2& VEE_Polygon::getTextureCoordinate uint  i  )  [inline]
 

void VEE_Polygon::setMaterial int  m  )  [inline]
 

int VEE_Polygon::getMaterial  )  const [inline]
 

uint VEE_Polygon::getMeshColumns  )  [inline]
 

uint VEE_Polygon::getMeshRows  )  [inline]
 

void VEE_Polygon::initTensions  )  [protected]
 

void VEE_Polygon::evaluateTensions  )  [protected]
 


Member Data Documentation

std::vector<VEE_Vector3> VEE_Polygon::m_gravForces [protected]
 

std::vector<VEE_Vector3> VEE_Polygon::m_dragForces [protected]
 

std::vector<VEE_Vector3> VEE_Polygon::m_vertexPositions [protected]
 

std::vector<VEE_Vector3> VEE_Polygon::m_vertexVelocities [protected]
 

std::vector<VEE_Vector2> VEE_Polygon::m_vertexTextureCoordinates [protected]
 

std::vector<uint> VEE_Polygon::m_indices [protected]
 

std::vector<uint> VEE_Polygon::m_links [protected]
 

std::vector<float> VEE_Polygon::m_distances [protected]
 

std::vector<float> VEE_Polygon::m_tensions [protected]
 

float VEE_Polygon::m_maxTension [protected]
 

float VEE_Polygon::m_stiffness [protected]
 

uint VEE_Polygon::m_n [protected]
 

uint VEE_Polygon::m_nTri [protected]
 

uint VEE_Polygon::m_nLinks [protected]
 

uint VEE_Polygon::m_meshColumns [protected]
 

uint VEE_Polygon::m_meshRows [protected]
 

int VEE_Polygon::m_material [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 12 21:09:33 2007 for VEE - The Visual Effects Engine by  doxygen 1.4.6