summaryrefslogtreecommitdiff
path: root/src/Vrml/Vrml_WWWAnchor.cxx
blob: 855fcaf55bdca2f6a0a389478819f044e71f589b (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <Vrml_WWWAnchor.ixx>

Vrml_WWWAnchor::Vrml_WWWAnchor(const TCollection_AsciiString& aName,
			       const TCollection_AsciiString& aDescription,
			       const Vrml_WWWAnchorMap aMap)
{
 myName = aName;
 myDescription = aDescription;
 myMap = aMap;
}

 void Vrml_WWWAnchor::SetName(const TCollection_AsciiString& aName) 
{
 myName = aName;
}

 TCollection_AsciiString Vrml_WWWAnchor::Name() const
{
  return myName;
}

 void Vrml_WWWAnchor::SetDescription(const TCollection_AsciiString& aDescription) 
{
 myDescription = aDescription;
}

 TCollection_AsciiString Vrml_WWWAnchor::Description() const
{
  return myDescription;
}

 void Vrml_WWWAnchor::SetMap(const Vrml_WWWAnchorMap aMap) 
{
 myMap = aMap;
}

 Vrml_WWWAnchorMap Vrml_WWWAnchor::Map() const
{
  return myMap;
}

 Standard_OStream& Vrml_WWWAnchor::Print(Standard_OStream& anOStream) const
{
 anOStream  << "WWWAnchor {" << endl;

 if ( !(myName.IsEqual( "" ) ) )
   {
    anOStream  << "    name" << '\t';
    anOStream << '"' << myName << '"' << endl;
   }

 if ( !(myDescription.IsEqual("") ) )
   {
    anOStream  << "    description" << '\t';
    anOStream << '"' << myDescription << '"' << endl;
   }

 switch ( myMap )
    {
     case Vrml_MAP_NONE: break; // anOStream  << "    map" << "\tNONE ";
     case Vrml_POINT: anOStream  << "    map" << "\t\tPOINT" << endl; break;
    }

 anOStream  << '}' << endl;
 return anOStream;

}