mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
28
src/Vrml/Vrml_Switch.cxx
Executable file
28
src/Vrml/Vrml_Switch.cxx
Executable file
@@ -0,0 +1,28 @@
|
||||
#include <Vrml_Switch.ixx>
|
||||
|
||||
Vrml_Switch::Vrml_Switch(const Standard_Integer aWhichChild)
|
||||
{
|
||||
myWhichChild = aWhichChild;
|
||||
}
|
||||
|
||||
void Vrml_Switch::SetWhichChild(const Standard_Integer aWhichChild)
|
||||
{
|
||||
myWhichChild = aWhichChild;
|
||||
}
|
||||
|
||||
Standard_Integer Vrml_Switch::WhichChild() const
|
||||
{
|
||||
return myWhichChild;
|
||||
}
|
||||
|
||||
Standard_OStream& Vrml_Switch::Print(Standard_OStream& anOStream) const
|
||||
{
|
||||
anOStream << "Switch {" << endl;
|
||||
if ( myWhichChild != -1 )
|
||||
{
|
||||
anOStream << " whichChild" << '\t';
|
||||
anOStream << myWhichChild << endl;
|
||||
}
|
||||
anOStream << '}' << endl;
|
||||
return anOStream;
|
||||
}
|
Reference in New Issue
Block a user