0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / Geom / Geom_Axis1Placement.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-03-09
2// Created by: JCV
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _Geom_Axis1Placement_HeaderFile
18#define _Geom_Axis1Placement_HeaderFile
19
20#include <Standard.hxx>
42cf5bc1 21
22#include <Geom_AxisPlacement.hxx>
23class gp_Ax1;
24class gp_Pnt;
25class gp_Dir;
26class gp_Trsf;
27class Geom_Geometry;
28
29
30class Geom_Axis1Placement;
31DEFINE_STANDARD_HANDLE(Geom_Axis1Placement, Geom_AxisPlacement)
32
33//! Describes an axis in 3D space.
34//! An axis is defined by:
35//! - its origin, also termed the "Location point" of the axis,
36//! - its unit vector, termed the "Direction" of the axis.
37//! Note: Geom_Axis1Placement axes provide the
38//! same kind of "geometric" services as gp_Ax1 axes
39//! but have more complex data structures. The
40//! geometric objects provided by the Geom package
41//! use gp_Ax1 objects to include axes in their data
42//! structures, or to define an axis of symmetry or axis of rotation.
43//! Geom_Axis1Placement axes are used in a context
44//! where they can be shared by several objects
45//! contained inside a common data structure.
46class Geom_Axis1Placement : public Geom_AxisPlacement
47{
48
49public:
50
51
52 //! Returns a transient copy of A1.
53 Standard_EXPORT Geom_Axis1Placement(const gp_Ax1& A1);
54
55
56 //! P is the origin of the axis placement and V is the direction
57 //! of the axis placement.
58 Standard_EXPORT Geom_Axis1Placement(const gp_Pnt& P, const gp_Dir& V);
59
60 //! Returns a non transient copy of <me>.
61 Standard_EXPORT const gp_Ax1& Ax1() const;
62
63 //! Reverses the direction of the axis placement.
64 Standard_EXPORT void Reverse();
65
66 //! Returns a copy of <me> reversed.
6ed44b1c 67 Standard_NODISCARD Standard_EXPORT Handle(Geom_Axis1Placement) Reversed() const;
42cf5bc1 68
69 //! Assigns V to the unit vector of this axis.
79104795 70 Standard_EXPORT void SetDirection (const gp_Dir& V) Standard_OVERRIDE;
42cf5bc1 71
72 //! Applies the transformation T to this axis.
79104795 73 Standard_EXPORT void Transform (const gp_Trsf& T) Standard_OVERRIDE;
42cf5bc1 74
75 //! Creates a new object, which is a copy of this axis.
79104795 76 Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
42cf5bc1 77
78
79
80
92efcf78 81 DEFINE_STANDARD_RTTIEXT(Geom_Axis1Placement,Geom_AxisPlacement)
42cf5bc1 82
83protected:
84
85
86
87
88private:
89
90
91
92
93};
94
95
96
97
98
99
100
101#endif // _Geom_Axis1Placement_HeaderFile