FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | List of all members
occ::IO Class Reference

#include <occtools/io.h>

Public Types

enum  Format {
  IgesFormat, StepFormat, OccBrepFormat, AsciiStlFormat,
  BinaryStlFormat, UnknownFormat
}
 
typedef const char * FileNameLocal8Bit
 

Static Public Member Functions

static Format partFormat (FileNameLocal8Bit fileName)
 
static Format partFormatFromContents (const char *contentsBegin, std::size_t contentsBeginSize, std::size_t fullContentsSizeHint=0)
 
static TopoDS_Shape loadPartFile (FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 
static Handle_StlMesh_Mesh loadStlFile (FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 
static TopoDS_Shape loadBrepFile (FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 Topologic shape read from a file (OCC's internal BREP format) More...
 
static TopoDS_Shape loadIgesFile (FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 Topologic shape read from a file (IGES format) More...
 
static TopoDS_Shape loadStepFile (FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 Topologic shape read from a file (STEP format) More...
 
static void writeBrepFile (const TopoDS_Shape &shape, FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 Write a topologic shape to a file (OCC's internal BREP format) More...
 
static void writeIgesFile (const TopoDS_Shape &shape, FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 Write a topologic shape to a file (IGES format) More...
 
static void writeStepFile (const TopoDS_Shape &shape, FileNameLocal8Bit fileName, Handle_Message_ProgressIndicator indicator=NULL)
 Write a topologic shape to a file (STEP format) More...
 
static void writeAsciiStlFile (const TopoDS_Shape &shape, FileNameLocal8Bit fileName)
 Write a topologic shape to a file (ASCII STL format) More...
 
static void writeBinaryStlFile (const TopoDS_Shape &shape, FileNameLocal8Bit fileName)
 Write a topologic shape to a file (binary STL format) More...
 

Member Typedef Documentation

typedef const char* occ::IO::FileNameLocal8Bit

Member Enumeration Documentation

Enumerator
IgesFormat 
StepFormat 
OccBrepFormat 
AsciiStlFormat 
BinaryStlFormat 
UnknownFormat 

Member Function Documentation

TopoDS_Shape occ::IO::loadBrepFile ( FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static

Topologic shape read from a file (OCC's internal BREP format)

Parameters
fileNamePath to the file to read
indicatorIndicator to notify the loading progress
Returns
The part as a whole topologic shape
TopoDS_Shape occ::IO::loadIgesFile ( FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static

Topologic shape read from a file (IGES format)

Parameters
fileNamePath to the file to read
indicatorIndicator to notify the loading progress
Returns
The part as a whole topologic shape
TopoDS_Shape occ::IO::loadPartFile ( FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static
TopoDS_Shape occ::IO::loadStepFile ( FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static

Topologic shape read from a file (STEP format)

Parameters
fileNamePath to the file to read
indicatorIndicator to notify the loading progress
Returns
The part as a whole topologic shape
Handle_StlMesh_Mesh occ::IO::loadStlFile ( FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static
IO::Format occ::IO::partFormat ( FileNameLocal8Bit  fileName)
static
IO::Format occ::IO::partFormatFromContents ( const char *  contentsBegin,
std::size_t  contentsBeginSize,
std::size_t  fullContentsSizeHint = 0 
)
static
void occ::IO::writeAsciiStlFile ( const TopoDS_Shape &  shape,
FileNameLocal8Bit  fileName 
)
static

Write a topologic shape to a file (ASCII STL format)

Parameters
shapeTopologic shape to write
fileNamePath to the file to write
void occ::IO::writeBinaryStlFile ( const TopoDS_Shape &  shape,
FileNameLocal8Bit  fileName 
)
static

Write a topologic shape to a file (binary STL format)

Parameters
shapeTopologic shape to write
fileNamePath to the file to write
void occ::IO::writeBrepFile ( const TopoDS_Shape &  shape,
FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static

Write a topologic shape to a file (OCC's internal BREP format)

Parameters
shapeTopologic shape to write
fileNamePath to the file to write
indicatorIndicator to notify the writing progress
void occ::IO::writeIgesFile ( const TopoDS_Shape &  shape,
FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static

Write a topologic shape to a file (IGES format)

Parameters
shapeTopologic shape to write
fileNamePath to the file to write
indicatorIndicator to notify the writing progress
void occ::IO::writeStepFile ( const TopoDS_Shape &  shape,
FileNameLocal8Bit  fileName,
Handle_Message_ProgressIndicator  indicator = NULL 
)
static

Write a topologic shape to a file (STEP format)

Parameters
shapeTopologic shape to write
fileNamePath to the file to write
indicatorIndicator to notify the writing progress

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