Heightfield Class Reference

Inheritance diagram for Heightfield:

Shape ReferenceCounted

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< Reference< Shape > > &refined) const
BBox ObjectBound () const

Private Attributes

float * z
int nx
int ny


Detailed Description

Definition at line 29 of file heightfield.cpp.


Constructor & Destructor Documentation

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

Definition at line 43 of file heightfield.cpp.

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

Referenced by CreateShape().

Heightfield::~Heightfield (  ) 

Definition at line 51 of file heightfield.cpp.

References z.


Member Function Documentation

bool Heightfield::CanIntersect (  )  const [virtual]

Reimplemented from Shape.

Definition at line 62 of file heightfield.cpp.

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

BBox Heightfield::ObjectBound (  )  const [virtual]

Implements Shape.

Definition at line 54 of file heightfield.cpp.

References nx, ny, and z.


Member Data Documentation

float* Heightfield::z [private]

Definition at line 39 of file heightfield.cpp.

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

int Heightfield::nx [private]

Definition at line 40 of file heightfield.cpp.

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

int Heightfield::ny [private]

Definition at line 40 of file heightfield.cpp.

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


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

Generated on Mon Jul 20 17:31:55 2009 for pbrt by  doxygen 1.5.6