HIOUtilityStl
-
class
HIOUtilityStl The HIOUtilitySTL allows you to read and write binary and ASCII stereolithography or STL files.
Inherits from: HInputHandler, HOutputHandler
Index
Methods
ComputeStlTriangles()FileInputByKey()FileInputByKey()FileInputByKey()FileOutputByKey()FileOutputByKey()FileOutputByKey()GetInputName()GetInputStyle()GetInputTypesString()GetOutputName()GetOutputStyle()GetOutputTypesString()HIOUtilityStl()ReadStlFile()ReadStlFileAscii()ReadStlFileBinary()RegisterInputHandlerTypes()RegisterOutputHandlerTypes()WriteStlFile()WriteStlFileAscii()WriteStlFileBinary()~HIOUtilityStl()
Variables
Structures
Methods
-
HIOUtilityStl::HIOUtilityStl() Constructs an
HIOUtilityStlobject.
-
virtual
HIOUtilityStl::~HIOUtilityStl() virtual
-
char const *
HIOUtilityStl::GetOutputName() Returns
A character pointer denoting the name of the handler.
-
char const *
HIOUtilityStl::GetInputName()
-
void
HIOUtilityStl::RegisterInputHandlerTypes() This method registers the “stl” extension to this handler as an input handler.
-
void
HIOUtilityStl::RegisterOutputHandlerTypes() This method registers the “stl” extension to this handler as an output handler.
-
char const *
HIOUtilityStl::GetInputTypesString() Returns
The input extension type that is handled byHIOUtilityStlwhich is “stl”.
-
char const *
HIOUtilityStl::GetOutputTypesString() Returns
The string of the type of output this handler creates which is “stl”.
-
HInputHandlerStyle
HIOUtilityStl::GetInputStyle() Returns
The type of input style which is #HInputHandlerStyleModel.
-
HOutputHandlerStyle
HIOUtilityStl::GetOutputStyle() Returns
The type of output style which is HOutputHandlerStyleModel.
-
HFileInputResult
HIOUtilityStl::FileInputByKey(__wchar_t const *FileName, HC_KEY key, HInputHandlerOptions *options) This method reads a stereolithography file. The file contents are mapped to a HOOPS shell primitive that is inserted into the currently open HOOPS segment. Both ASCII and binary .stl files are supported.
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
HIOUtilityStl::FileInputByKey(char const *FileName, HC_KEY key, HInputHandlerOptions *options)
-
HFileInputResult
HIOUtilityStl::FileInputByKey(unsigned short const *FileName, HC_KEY key, HInputHandlerOptions *options)
-
HFileOutputResult
HIOUtilityStl::FileOutputByKey(__wchar_t const *filename, HC_KEY key, HOutputHandlerOptions *options) This method writes a stereolithography file out of the segment tree underneath the given key. Both ASCII and binary .stl files are supported.
Parameters
filename: The name of the file to output.
key: The HOOPS segment key to output model data from.
options: Set this parameter’s m_bAscii member to true if you want to write an ASCII .stl file or false to write a binary .stl file.
Returns
The #HFileOutputResult result of the output operation.
-
HFileOutputResult
HIOUtilityStl::FileOutputByKey(unsigned short const *filename, HC_KEY key, HOutputHandlerOptions *options)
-
HFileOutputResult
HIOUtilityStl::FileOutputByKey(char const *filename, HC_KEY key, HOutputHandlerOptions *options)
-
static HFileInputResult
HIOUtilityStl::ReadStlFile(__wchar_t const *FileName) private static
-
static HFileInputResult
HIOUtilityStl::ReadStlFileAscii(__wchar_t const *FileName) private static
-
static HFileInputResult
HIOUtilityStl::ReadStlFileBinary(__wchar_t const *FileName) private static
-
static HFileOutputResult
HIOUtilityStl::WriteStlFile(__wchar_t const *FileName, float const *vertices, float const *normals, unsigned int triangle_count, bool is_ascii, char *partname) private static
-
static HFileOutputResult
HIOUtilityStl::WriteStlFileAscii(__wchar_t const *FileName, float const *vertices, float const *normals, unsigned int triangle_count, char *partname) private static
-
static HFileOutputResult
HIOUtilityStl::WriteStlFileBinary(__wchar_t const *FileName, float const *vertices, float const *normals, unsigned int triangle_count) private static
-
static HFileOutputResult
HIOUtilityStl::ComputeStlTriangles(HC_KEY the_key, stl_info *info, HOutputHandlerOptions *options, bool no_recurse = false, float matrix_for_segment_reference[] = 0) private static
Variables
-
struct HIOUtilityStl::stl_info
HIOUtilityStl::stl_info_s private static
struct HIOUtilityStl::stl_info
-
struct HIOUtilityStl::include_list
HIOUtilityStl::include_list_s private static
struct HIOUtilityStl::include_list