Panda3D
|
Descriptor class for height fields. More...
#include "physxHeightFieldDesc.h"
Public Member Functions | |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
void | set_convex_edge_threshold (float threshold) |
void | set_height (unsigned int row, unsigned int column, short height) |
void | set_image (const PNMImage &image, unsigned short materialIndex=0) |
void | set_material_index (unsigned int row, unsigned int column, unsigned short materialIndex0, unsigned short materialIndex1) |
void | set_size (unsigned int num_rows, unsigned int num_columns) |
void | set_tess_flag (unsigned int row, unsigned int column, unsigned short value) |
void | set_thickness (float thickness) |
void | set_to_default () |
(re)sets the structure to the default. | |
Public Attributes | |
NxHeightFieldDesc | _desc |
Descriptor class for height fields.
The height field data is copied when a PhysxHeightField object is created from this descriptor. After the call the user may discard the original height data (e.g. release the PNGImage).
Definition at line 27 of file physxHeightFieldDesc.h.
|
inline |
Definition at line 17 of file physxHeightFieldDesc.I.
|
inline |
Definition at line 27 of file physxHeightFieldDesc.I.
|
inline |
Returns true if the descriptor is valid.
Definition at line 44 of file physxHeightFieldDesc.I.
void PhysxHeightFieldDesc::set_convex_edge_threshold | ( | float | threshold | ) |
Definition at line 19 of file physxHeightFieldDesc.cxx.
void PhysxHeightFieldDesc::set_height | ( | unsigned int | row, |
unsigned int | column, | ||
short | height ) |
Definition at line 92 of file physxHeightFieldDesc.cxx.
void PhysxHeightFieldDesc::set_image | ( | const PNMImage & | image, |
unsigned short | materialIndex = 0 ) |
Definition at line 37 of file physxHeightFieldDesc.cxx.
void PhysxHeightFieldDesc::set_material_index | ( | unsigned int | row, |
unsigned int | column, | ||
unsigned short | materialIndex0, | ||
unsigned short | materialIndex1 ) |
Definition at line 71 of file physxHeightFieldDesc.cxx.
|
inline |
Definition at line 53 of file physxHeightFieldDesc.I.
void PhysxHeightFieldDesc::set_tess_flag | ( | unsigned int | row, |
unsigned int | column, | ||
unsigned short | value ) |
Definition at line 109 of file physxHeightFieldDesc.cxx.
void PhysxHeightFieldDesc::set_thickness | ( | float | thickness | ) |
Definition at line 28 of file physxHeightFieldDesc.cxx.
|
inline |
(re)sets the structure to the default.
Definition at line 35 of file physxHeightFieldDesc.I.
NxHeightFieldDesc PhysxHeightFieldDesc::_desc |
Definition at line 48 of file physxHeightFieldDesc.h.