1 // Created by: DAUTRY Philippe
2 // Copyright (c) 1998-1999 Matra Datavision
3 // Copyright (c) 1999-2012 OPEN CASCADE SAS
5 // The content of this file is subject to the Open CASCADE Technology Public
6 // License Version 6.5 (the "License"). You may not use the content of this file
7 // except in compliance with the License. Please obtain a copy of the License
8 // at http://www.opencascade.org and read it completely before using this file.
10 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 // The Original Code and all software distributed under the License is
14 // distributed on an "AS IS" basis, without warranty of any kind, and the
15 // Initial Developer hereby disclaims all such warranties, including without
16 // limitation, any warranties of merchantability, fitness for a particular
17 // purpose or non-infringement. Please see the License for the specific terms
18 // and conditions governing the rights and limitations under the License.
23 //Version Date Purpose
24 // 0.0 Feb 4 1998 Creation
28 #include <PTopoDS_Shape1.ixx>
30 //=======================================================================
31 //function : PTopoDS_Shape1
33 //=======================================================================
35 PTopoDS_Shape1::PTopoDS_Shape1()
36 : myOrient(TopAbs_FORWARD)
40 //=======================================================================
43 //=======================================================================
45 void PTopoDS_Shape1::Nullify()
48 myLocation = PTopLoc_Location();
49 myOrient = TopAbs_FORWARD;
52 //=======================================================================
55 //=======================================================================
57 const Handle(PTopoDS_TShape1)& PTopoDS_Shape1::TShape() const
61 //=======================================================================
64 //=======================================================================
66 void PTopoDS_Shape1::TShape(const Handle(PTopoDS_TShape1)& T)
70 //=======================================================================
73 //=======================================================================
75 PTopLoc_Location PTopoDS_Shape1::Location() const
76 { return myLocation; }
79 //=======================================================================
82 //=======================================================================
84 void PTopoDS_Shape1::Location(const PTopLoc_Location& L)
88 //=======================================================================
89 //function : Orientation
91 //=======================================================================
93 TopAbs_Orientation PTopoDS_Shape1::Orientation() const
97 //=======================================================================
98 //function : Orientation
100 //=======================================================================
102 void PTopoDS_Shape1::Orientation(const TopAbs_Orientation O)