Open CASCADE Technology  7.2.0
Public Member Functions

Vrml_Instancing Class Reference

defines "instancing" - using the same instance of a node multiple times. It is accomplished by using the "DEF" and "USE" keywords. The DEF keyword both defines a named node, and creates a single instance of it. The USE keyword indicates that the most recently defined instance should be used again. If several nades were given the same name, then the last DEF encountered during parsing "wins". DEF/USE is limited to a single file. More...

#include <Vrml_Instancing.hxx>

Public Member Functions

 Vrml_Instancing (const TCollection_AsciiString &aString)
 Adds "DEF <myName>" in anOStream (VRML file). More...
 
Standard_OStreamDEF (Standard_OStream &anOStream) const
 Adds "USE <myName>" in anOStream (VRML file). More...
 
Standard_OStreamUSE (Standard_OStream &anOStream) const
 

Detailed Description

defines "instancing" - using the same instance of a node multiple times. It is accomplished by using the "DEF" and "USE" keywords. The DEF keyword both defines a named node, and creates a single instance of it. The USE keyword indicates that the most recently defined instance should be used again. If several nades were given the same name, then the last DEF encountered during parsing "wins". DEF/USE is limited to a single file.

Constructor & Destructor Documentation

◆ Vrml_Instancing()

Vrml_Instancing::Vrml_Instancing ( const TCollection_AsciiString aString)

Adds "DEF <myName>" in anOStream (VRML file).

Member Function Documentation

◆ DEF()

Standard_OStream& Vrml_Instancing::DEF ( Standard_OStream anOStream) const

Adds "USE <myName>" in anOStream (VRML file).

◆ USE()

Standard_OStream& Vrml_Instancing::USE ( Standard_OStream anOStream) const

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