summaryrefslogtreecommitdiff
path: root/src/Vrml/Vrml_Switch.cxx
blob: 278b845c4b70af2dd423e01d5801962b1bd41edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
}