HIOUtilityPly

class HIOUtilityPly

The HIOUtilityPly is used for reading PLY files.

Inherits from: HInputHandler, HOutputHandler

Classes

Methods

bool HIOUtilityPly::read_ply_header(FILE *f, int *point_count, int *face_count, int *opcodes)

private

bool HIOUtilityPly::write_ply_header(FILE *f, int point_count, int face_count, HPoint *min = 0, HPoint *max = 0)

private

bool HIOUtilityPly::count(int *total_point_count, int *total_face_count)

private

bool HIOUtilityPly::write_points(FILE *f)

private

bool HIOUtilityPly::write_faces(FILE *f)

private

bool HIOUtilityPly::count_recursive(int *total_point_count, int *total_face_count)

private

bool HIOUtilityPly::write_points_recursive(FILE *f, float *modelling_matrix_in)

private

bool HIOUtilityPly::write_faces_recursive(FILE *f, int *point_offset)

private

bool HIOUtilityPly::write_one_int(FILE *f, int val)

private

bool HIOUtilityPly::write_one_byte(FILE *f, unsigned char val)

private

bool HIOUtilityPly::write_one_float(FILE *f, float val)

private

bool HIOUtilityPly::read_one_int(FILE *f, int *val)

private

bool HIOUtilityPly::read_one_byte(FILE *f, unsigned char *val)

private

bool HIOUtilityPly::read_one_float(FILE *f, float *val)

private

HIOUtilityPly::HIOUtilityPly()

Constructs an HIOUtilityPly object.

virtual HIOUtilityPly::~HIOUtilityPly()

virtual

char const *HIOUtilityPly::GetOutputName()

Returns

A character pointer denoting the name of the handler.
char const *HIOUtilityPly::GetInputName()
void HIOUtilityPly::RegisterInputHandlerTypes()

This method registers the “ply” extension to this handler as an input handler.

void HIOUtilityPly::RegisterOutputHandlerTypes()

This method registers the “ply” extension to this handler as an output handler.

char const *HIOUtilityPly::GetInputTypesString()

Returns

The input extension type that is handled by HIOUtilityPly which is “ply”.
char const *HIOUtilityPly::GetOutputTypesString()

Returns

The string of the type of output this handler creates which is “ply”.
HInputHandlerStyle HIOUtilityPly::GetInputStyle()

Returns

The type of input style which is #HInputHandlerStyleModel.
HOutputHandlerStyle HIOUtilityPly::GetOutputStyle()

Returns

The type of output style which is HOutputHandlerStyleModel.
HFileInputResult HIOUtilityPly::FileInputByKey(__wchar_t const *FileName, HC_KEY key, HInputHandlerOptions *options)

This method reads a ply file which is commonly used in academic research. The file contents are mapped to a HOOPS shell primitive that is inserted into the HOOPS segment specified by the key.

Parameters

filename: The name of the file to load.

key: The HOOPS segment key to load model data into.

options: This parameter is currently not being used.

Returns

The #HFileInputResult result of the input operation.
HFileInputResult HIOUtilityPly::FileInputByKey(char const *FileName, HC_KEY key, HInputHandlerOptions *options)
HFileInputResult HIOUtilityPly::FileInputByKey(unsigned short const *FileName, HC_KEY key, HInputHandlerOptions *options)
HFileOutputResult HIOUtilityPly::FileOutputByKey(__wchar_t const *filename, HC_KEY key, HOutputHandlerOptions *options)

This method writes write a ply file which is commonly used in academic research.

Parameters

filename: The name of the file to output.

key: The HOOPS segment key to output model data from.

options: This parameter is currently not being used.

Returns

The #HFileOutputResult result of the output operation.
HFileOutputResult HIOUtilityPly::FileOutputByKey(unsigned short const *filename, HC_KEY key, HOutputHandlerOptions *options)
HFileOutputResult HIOUtilityPly::FileOutputByKey(char const *filename, HC_KEY key, HOutputHandlerOptions *options)

Variables

bool HIOUtilityPly::m_binary

private

bool
bool HIOUtilityPly::m_bigendian

private

bool
bool HIOUtilityPly::m_vertex_colors

private

bool
bool HIOUtilityPly::m_vertex_normals

private

bool
bool HIOUtilityPly::m_face_colors

private

bool