2 // File Aspect_Edge.cxx
3 // Created Fevrier 1992
6 //-Copyright MatraDatavision 1991,1992
10 //-Design Declaration des variables specifiques aux aretes
12 //-Warning Une arete est definie par :
13 // - les 2 sommets references par des indices
23 #include <Aspect_Edge.ixx>
27 //-Global data definitions
29 // -- les indices des sommets extremite
30 // MyBegin : Standard_Integer;
31 // MyEnd : Standard_Integer;
34 // MyVisibility : TypeOfEdge;
42 Aspect_Edge::Aspect_Edge () {
46 MyVisibility = Aspect_TOE_INVISIBLE;
50 Aspect_Edge::Aspect_Edge (const Standard_Integer AIndex1, const Standard_Integer AIndex2, const Aspect_TypeOfEdge AType) {
52 if (AIndex1 == AIndex2)
53 Aspect_EdgeDefinitionError::Raise ("Bad index for the edge");
61 void Aspect_Edge::SetValues (const Standard_Integer AIndex1, const Standard_Integer AIndex2, const Aspect_TypeOfEdge AType) {
63 if (AIndex1 == AIndex2)
64 Aspect_EdgeDefinitionError::Raise ("Bad index for the edge");
72 void Aspect_Edge::Values (Standard_Integer& AIndex1, Standard_Integer& AIndex2, Aspect_TypeOfEdge& AType) const {
80 Standard_Integer Aspect_Edge::FirstIndex () const {
86 Standard_Integer Aspect_Edge::LastIndex () const {
92 Aspect_TypeOfEdge Aspect_Edge::Type () const {
94 return (MyVisibility);