DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


IKO_Geom2d_Geometry Interface


The general abstract class Geometry in 2D space describes
the common behaviour of all the geometric entities.

All the objects derived from this class can be move with a
geometric transformation. Only the transformations which
doesn't modify the nature of the geometry are available in
this package.
The method Transform which defines a general transformation
is deferred. The other specifics transformations used the
method Transform.
All the following transformations modify the object itself.
Warning
Only transformations which do not modify the nature
of the geometry can be applied to Geom2d objects:
this is the case with translations, rotations,
symmetries and scales; this is also the case with
gp_Trsf2d composite transformations which are
used to define the geometric transformations applied
using the Transform or Transformed functions.
Note: Geometry defines the "prototype" of the
abstract method Transform which is defined for each
concrete type of derived object. All other
transformations are implemented using the Transform method.

Query IKO_Standard_Object from this interface to create a copy or obtain the type name

Methods

Mirror
Mirror1
Rotate
Scale
Translate
Translate1
Transform
Mirrored
Mirrored1
Rotated
Scaled
Transformed
Translated
Translated1
Copy

HRESULT Mirror(KC2D* P)


HRESULT Mirror1(IKO_gp_Ax2d* A)


HRESULT Rotate(KC2D* P, double Ang)


HRESULT Scale(KC2D* P, double S)


HRESULT Translate(KC2D* V)


HRESULT Translate1(KC2D* P1, KC2D* P2)


HRESULT Transform(IKO_gp_Trsf2d* T)


HRESULT Mirrored(KC2D* P, IKO_Geom2d_Geometry** ret)


HRESULT Mirrored1(IKO_gp_Ax2d* A, IKO_Geom2d_Geometry** ret)


HRESULT Rotated(KC2D* P, double Ang, IKO_Geom2d_Geometry** ret)


HRESULT Scaled(KC2D* P, double S, IKO_Geom2d_Geometry** ret)


HRESULT Transformed(IKO_gp_Trsf2d* T, IKO_Geom2d_Geometry** ret)


HRESULT Translated(KC2D* V, IKO_Geom2d_Geometry** ret)


HRESULT Translated1(KC2D* P1, KC2D* P2, IKO_Geom2d_Geometry** ret)


HRESULT Copy(IKO_Geom2d_Geometry** ret)