lux::Heightfield Class Reference

#include <heightfield.h>

Inheritance diagram for lux::Heightfield:
[legend]
Collaboration diagram for lux::Heightfield:
[legend]

List of all members.

Public Member Functions

 Heightfield (const Transform &o2w, bool ro, int nu, int nv, const float *zs)
virtual ~Heightfield ()
virtual bool CanIntersect () const
virtual void Refine (vector< boost::shared_ptr< Shape > > &refined) const
virtual 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 31 of file heightfield.cpp.

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

Referenced by CreateShape().

Heightfield::~Heightfield (  )  [virtual]

Definition at line 39 of file heightfield.cpp.

References z.


Member Function Documentation

bool Heightfield::CanIntersect (  )  const [virtual]

Returns whether this primitive can be intersected.

Reimplemented from lux::Shape.

Definition at line 50 of file heightfield.cpp.

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

Reimplemented from lux::Shape.

Definition at line 42 of file heightfield.cpp.

References nx, ny, and z.

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

Member Data Documentation

Definition at line 45 of file heightfield.h.

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

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 by  doxygen 1.6.2-20100208