OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKG3d
Geom


Geom_ElementarySurface Class Reference

Describes the common behavior of surfaces which
have a simple parametric equation in a local
coordinate system. The Geom package provides
several implementations of concrete elementary surfaces:
- the plane, and
- four simple surfaces of revolution: the cylinder, the
cone, the sphere and the torus.
An elementary surface inherits the common behavior
of Geom_Surface surfaces. Furthermore, it is located
in 3D space by a coordinate system (a gp_Ax3
object) which is also its local coordinate system.
Any elementary surface is oriented, i.e. the normal
vector is always defined, and gives the same
orientation to the surface, at any point on the surface.
In topology this property is referred to as the "outside <br> region of the surface". This orientation is related to
the two parametric directions of the surface.
Rotation of a surface around the "main Axis" of its
coordinate system, in the trigonometric sense given
by the "X Direction" and the "Y Direction" of the
coordinate system, defines the u parametric direction
of that elementary surface of revolution. This is the
default construction mode.
It is also possible, however, to change the orientation
of a surface by reversing one of the two parametric
directions: use the UReverse or VReverse functions
to change the orientation of the normal at any point on the surface.
Warning
The local coordinate system of an elementary surface
is not necessarily direct:
- if it is direct, the trigonometric sense defined by its
"main Direction" is the same as the trigonometric
sense defined by its two vectors "X Direction" and "Y Direction":
"main Direction" = "X Direction" ^ "Y Direction"
- if it is indirect, the two definitions of trigonometric
sense are opposite:
"main Direction" = - "X Direction" ^ "Y Direction"
.

#include <Geom_ElementarySurface.hxx>

Inheritance diagram for Geom_ElementarySurface:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT void SetAxis (const gp_Ax1 &A1)
 Changes the main axis (ZAxis) of the elementary surface.
Raised if the direction of A1 is parallel to the XAxis of the
coordinate system of the surface.
.
Standard_EXPORT void SetLocation (const gp_Pnt &Loc)
 Changes the location of the local coordinates system of the
surface.
.
Standard_EXPORT void SetPosition (const gp_Ax3 &A3)
 Changes the local coordinates system of the surface.
.
Standard_EXPORT gp_Ax1 Axis () const
 Returns the main axis of the surface (ZAxis).
.
Standard_EXPORT gp_Pnt Location () const
 Returns the location point of the local coordinate system of the
surface.
.
Standard_EXPORT const gp_Ax3 & Position () const
 Returns the local coordinates system of the surface.
.
virtual Standard_EXPORT void UReverse ()
 Reverses the U parametric direction of the surface.
.
virtual Standard_EXPORT Standard_Real UReversedParameter (const Standard_Real U) const =0
 Return the parameter on the Ureversed surface for
the point of parameter U on <me>.

me->UReversed()->Value(me->UReversedParameter(U),V)
is the same point as
me->Value(U,V)
.
virtual Standard_EXPORT void VReverse ()
 Reverses the V parametric direction of the surface.
.
virtual Standard_EXPORT Standard_Real VReversedParameter (const Standard_Real V) const =0
 Return the parameter on the Vreversed surface for
the point of parameter V on <me>.

me->VReversed()->Value(U,me->VReversedParameter(V))
is the same point as
me->Value(U,V)
.
Standard_EXPORT GeomAbs_Shape Continuity () const
 Returns GeomAbs_CN, the global continuity of any elementary surface.
.
Standard_EXPORT Standard_Boolean IsCNu (const Standard_Integer N) const
 Returns True.
.
Standard_EXPORT Standard_Boolean IsCNv (const Standard_Integer N) const
 Returns True.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Attributes

gp_Ax3 pos

Member Function Documentation

Standard_EXPORT gp_Ax1 Geom_ElementarySurface::Axis  )  const
 

Standard_EXPORT GeomAbs_Shape Geom_ElementarySurface::Continuity  )  const [virtual]
 

Implements Geom_Surface.

Standard_EXPORT const Geom_ElementarySurface::Handle Standard_Type   )  const
 

Reimplemented from Geom_Surface.

Reimplemented in Geom_ConicalSurface, Geom_CylindricalSurface, Geom_Plane, Geom_SphericalSurface, and Geom_ToroidalSurface.

Standard_EXPORT Standard_Boolean Geom_ElementarySurface::IsCNu const Standard_Integer  N  )  const [virtual]
 

Implements Geom_Surface.

Standard_EXPORT Standard_Boolean Geom_ElementarySurface::IsCNv const Standard_Integer  N  )  const [virtual]
 

Implements Geom_Surface.

Standard_EXPORT gp_Pnt Geom_ElementarySurface::Location  )  const
 

Standard_EXPORT const gp_Ax3& Geom_ElementarySurface::Position  )  const
 

Standard_EXPORT void Geom_ElementarySurface::SetAxis const gp_Ax1 &  A1  ) 
 

Standard_EXPORT void Geom_ElementarySurface::SetLocation const gp_Pnt &  Loc  ) 
 

Standard_EXPORT void Geom_ElementarySurface::SetPosition const gp_Ax3 &  A3  ) 
 

virtual Standard_EXPORT void Geom_ElementarySurface::UReverse  )  [virtual]
 

Implements Geom_Surface.

Reimplemented in Geom_Plane.

virtual Standard_EXPORT Standard_Real Geom_ElementarySurface::UReversedParameter const Standard_Real  U  )  const [pure virtual]
 

Implements Geom_Surface.

Implemented in Geom_ConicalSurface, Geom_CylindricalSurface, Geom_Plane, Geom_SphericalSurface, and Geom_ToroidalSurface.

virtual Standard_EXPORT void Geom_ElementarySurface::VReverse  )  [virtual]
 

Implements Geom_Surface.

Reimplemented in Geom_ConicalSurface, and Geom_Plane.

virtual Standard_EXPORT Standard_Real Geom_ElementarySurface::VReversedParameter const Standard_Real  V  )  const [pure virtual]
 

Implements Geom_Surface.

Implemented in Geom_ConicalSurface, Geom_CylindricalSurface, Geom_Plane, Geom_SphericalSurface, and Geom_ToroidalSurface.


Field Documentation

gp_Ax3 Geom_ElementarySurface::pos [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:54 2008 for OpenCASCADE by  doxygen 1.4.1