Class for importing a scene graph from a CAD file. More...
#include <Inventor/io/CAD/SoCADInputReader.h>
Public Member Functions | |
SoCADInputReader () | |
Constructor. | |
virtual | ~SoCADInputReader () |
Destructor. | |
virtual bool | canConvert (SoInput *) |
Returns true if the specified input source can be converted by this plugin. | |
virtual SoSeparator * | convert (SoInput *) |
Returns the specified input source in the form of an Open Inventor scene graph. | |
Public Member Functions inherited from SoRefCounter | |
void | ref () const |
Adds a reference to an instance. | |
void | unref () const |
Removes a reference from an instance. | |
void | unrefNoDelete () const |
unrefNoDelete() should be called when it is desired to decrement the reference count, but not delete the instance if this brings the reference count to zero. | |
int | getRefCount () const |
Returns current reference count. | |
void | lock () const |
lock this instance. | |
void | unlock () const |
unlock this instance. | |
Public Member Functions inherited from SoTypedObject | |
virtual SoType | getTypeId () const =0 |
Returns the type identifier for a specific instance. | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Additional Inherited Members | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Class for importing a scene graph from a CAD file.
This class can import data from a number of CAD file formats to an Open Inventor scenegraph.
Note that for each format, if the required license are available reading a file into Open Inventor is just like reading in an Open Inventor format file. Open Inventor will open the file and automatically detect its format and use this class to do the import.
List of supported formats:
File extensions | File Format |
.catpart, .catproduct | CATIA V5. See CATIAV5_DETAILS. |
.3dxml | CATIA V6. See CATIAV6_DETAILS. |
.iges, .igs | IGES reader. See IGES_DETAILS. |
.jt | JT. See JT_DETAILS. |
.xmt, .x_t, .x_b | ParaSolid. see PARASOLID_DETAILS. |
.par, .asm, .psm, .pwd | SolidEdge. see SOLIDEDGE_DETAILS |
.sldprt, .sldasm | SolidWorks. see SOLIDWORKS_DETAILS |
.prt | Unigraphics. see UNIGRAPHICS_DETAILS |
.step, .stp, .stp.Z | STEP. see STEP_DETAILS |
.dwg | Autocad Dwg. see DWG_DETAILS. |
.asm, .prt, .xar, .xpr | PROECREO. see PROECREO_DETAILS. |
.vda | VDA. |
Important Notes:
Part names will be imported, but since the names are assigned directly to nodes, the Open Inventor node name limitations will be enforced automatically (see SoBase::setName()). For example ' ' (blank or space) characters are replaced with '_' (underscore) characters and a leading '#' (hash or pound sign) character will be replaced with "_" (underscore).
ProE/Creo Parametric Input details:
SoInput, SoInputParameters, SoCADFileFormat, SoCADInputReaderParameters
Definition at line 110 of file SoCADInputReader.h.
SoCADInputReader::SoCADInputReader | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Returns true if the specified input source can be converted by this plugin.
Note that the input source (SoInput object) may be a file or a buffer (memory). This method should return false if the input source is a buffer and the reader does not support reading from a buffer. SoInput::getCurFile() returns NULL if the input source is a buffer.
Implements SoInputReader.
|
virtual |
Returns the specified input source in the form of an Open Inventor scene graph.
Note that the input source (SoInput object) may be a file or a buffer (memory). This method should return NULL if the input source is a buffer and the reader does not support reading from a buffer. SoInput::getCurFile() returns NULL if the input source is a buffer.
Implements SoInputReader.