#include <heightfield.h>

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 Shape * | CreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet ¶ms) |
Private Attributes | |
| float * | z |
| int | nx |
| int | ny |
Definition at line 32 of file heightfield.h.
| 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 | ( | ) |
| bool Heightfield::CanIntersect | ( | ) | const [virtual] |
| 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] |
| void Heightfield::Refine | ( | vector< boost::shared_ptr< Shape > > & | refined | ) | const [virtual] |
Reimplemented from lux::Shape.
Definition at line 52 of file heightfield.cpp.
References lux::ParamSet::AddFloat(), lux::ParamSet::AddInt(), lux::ParamSet::AddPoint(), lux::MakeShape(), nx, ny, lux::Shape::ObjectToWorld, lux::Shape::reverseOrientation, VERT, lux::Point::x, lux::Point::y, z, and lux::Point::z.
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().
1.5.9