lux::Heightfield Class Reference

#include <heightfield.h>

Inheritance diagram for lux::Heightfield:

lux::Shape

List of all members.

Public Member Functions

 Heightfield (const Transform &o2w, bool ro, int nu, int nv, const float *zs)
 ~Heightfield ()
bool CanIntersect () const
void Refine (vector< boost::shared_ptr< Shape > > &refined) const
BBox ObjectBound () const

Static Public Member Functions

static ShapeCreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet &params)

Private Attributes

float * z
int nx
int ny


Detailed Description

Definition at line 32 of file heightfield.h.


Constructor & Destructor Documentation

Heightfield::Heightfield ( const Transform o2w,
bool  ro,
int  nu,
int  nv,
const float *  zs 
)

Definition at line 30 of file heightfield.cpp.

References memcpy(), nx, ny, and z.

Referenced by CreateShape().

Heightfield::~Heightfield (  ) 

Definition at line 38 of file heightfield.cpp.

References z.


Member Function Documentation

bool Heightfield::CanIntersect (  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 49 of file heightfield.cpp.

Shape * Heightfield::CreateShape ( const Transform o2w,
bool  reverseOrientation,
const ParamSet params 
) [static]

Definition at line 95 of file heightfield.cpp.

References lux::ParamSet::FindFloat(), lux::ParamSet::FindOneInt(), and Heightfield().

Referenced by lux::MakeShape().

BBox Heightfield::ObjectBound (  )  const [virtual]

Implements lux::Shape.

Definition at line 41 of file heightfield.cpp.

References nx, ny, and z.

void Heightfield::Refine ( vector< boost::shared_ptr< Shape > > &  refined  )  const [virtual]


Member Data Documentation

int lux::Heightfield::nx [private]

Definition at line 45 of file heightfield.h.

Referenced by Heightfield(), ObjectBound(), and Refine().

int lux::Heightfield::ny [private]

Definition at line 45 of file heightfield.h.

Referenced by Heightfield(), ObjectBound(), and Refine().

float* lux::Heightfield::z [private]

Definition at line 44 of file heightfield.h.

Referenced by Heightfield(), ObjectBound(), Refine(), and ~Heightfield().


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

Generated on Mon May 18 07:15:19 2009 for lux by  doxygen 1.5.7.1