CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FMWrapper3D.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef __FMWRAPPER3D_H__
25#define __FMWRAPPER3D_H__
26
27#include "FMContoursBase.h"
28#include <Ge/GeMatrix3d.h>
29#include <Ge/GePlane.h>
30#include <Ge/GePoint3d.h>
31
32namespace FacetModeler
33{
38 {
39 public:
44
50 explicit Wrapper3D(const OdGeMatrix3d& rMatrix);
51
59 explicit Wrapper3D(const OdGeVector3d& vXAxis,
60 const OdGeVector3d& vYAxis,
61 const OdGePoint3d& ptOrigin = OdGePoint3d::kOrigin);
62
68 explicit Wrapper3D(const OdGePlane& rPlane);
69
76
82 const OdGeMatrix3d& transform() const;
83
90
97 Result setTransform(const OdGeMatrix3d& mTransform);
98
108 const OdGeVector3d& vYAxis,
109 const OdGePoint3d& ptOrigin = OdGePoint3d::kOrigin);
110
118
125 void to3D(const OdGePoint2d& rSource2D,
126 OdGePoint3d& rDest3D) const;
127
134 void to3D(const OdGeVector2d& rSource2D,
135 OdGeVector3d& rDest3D) const;
136
144 Result to2D(const OdGePoint3d& rSource3D,
145 OdGePoint2d& rDest2D) const;
146
154 Result to2D(const OdGeVector3d& rSource3D,
155 OdGeVector2d& rDest2D) const;
156
162 void swap(Wrapper3D& rAnother);
163
164 private:
165 OdGeMatrix3d m_mTrans; // Transformation matrix.
166 OdGeMatrix3d m_mInvertTrans; // Inverted transformation matrix.
167 };
168
169};
170
171#endif //__FMWRAPPER3D_H__
#define FMGEOMETRY_API
Result to2D(const OdGePoint3d &rSource3D, OdGePoint2d &rDest2D) const
Wrapper3D(const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis, const OdGePoint3d &ptOrigin=OdGePoint3d::kOrigin)
Wrapper3D(const OdGePlane &rPlane)
OdGePlane plane() const
Result to2D(const OdGeVector3d &rSource3D, OdGeVector2d &rDest2D) const
void to3D(const OdGePoint2d &rSource2D, OdGePoint3d &rDest3D) const
Wrapper3D(const OdGeMatrix3d &rMatrix)
Result setTransform(const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis, const OdGePoint3d &ptOrigin=OdGePoint3d::kOrigin)
const OdGeMatrix3d & transform() const
void swap(Wrapper3D &rAnother)
Result setTransform(const OdGeMatrix3d &mTransform)
void to3D(const OdGeVector2d &rSource2D, OdGeVector3d &rDest3D) const
const OdGeMatrix3d & inversedTransform() const
Result transformBy(const OdGeMatrix3d &mMatrix)
static GE_STATIC_EXPORT const OdGePoint3d kOrigin
Definition: GePoint3d.h:106