CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GeScale2d.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
25
26
27#ifndef OD_GESCL2D_H
28#define OD_GESCL2D_H
31class OdGeMatrix2d;
32class OdGeScale3d;
33#include "Ge/GeGbl.h"
34#include "TD_PackPush.h"
35
47{
48public:
49
57
67 double factor);
68
79 double xFactor,
80 double yFactor);
81
82 GE_STATIC_EXPORT static const OdGeScale2d kIdentity; // Multplicitive identity vector.
83
99 const OdGeScale2d& scaleVec) const;
100
102 double factor,
103 const OdGeScale2d& scaleVec);
104
113 OdGeScale2d& operator *=(
114 const OdGeScale2d& scaleVec);
115
126 {
127 return operator *=(leftSide);
128 }
129
140 {
141 return operator *=(rightSide);
142 }
143
144
161 const OdGeScale2d& scaleVec, double factor);
162
179 const OdGeScale2d& scaleVec1,
180 const OdGeScale2d& scaleVec2);
181
195 double factor) const;
196
197
210 OdGeScale2d& operator *=(
211 double factor);
212
217
223
230 const OdGeTol& tol = OdGeContext::gTol) const;
231
238 const OdGeScale2d& scaleVec) const;
239
246 const OdGeScale2d& scaleVec) const;
247
256 const OdGeScale2d& scaleVec,
257 const OdGeTol& tol = OdGeContext::gTol) const;
258
268 double& operator [](
269 unsigned int i)
270 {
271 return * (&sx + i);
272 }
273
283 double operator [](
284 unsigned int i) const
285 {
286 return * (&sx + i);
287 }
288
297 double xFactor,
298 double yFactor);
299
300
308 OdGeMatrix2d& xfm) const;
309
320 const OdGeMatrix2d& xfm);
321
333 OdGeMatrix2d& xfm);
334
338 operator OdGeMatrix2d() const;
342 operator OdGeScale3d() const;
343
344 double sx; // X scale *factor*.
345 double sy; // Y scale *factor*.
346};
347
348#include "TD_PackPop.h"
349
350#endif // OD_GESCL2D_H
351
AECBASE_API OdGePoint3d operator*(const AECECS &matrix, const OdGePoint3d &point)
tol
Definition: DimVarDefs.h:2287
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
#define GE_STATIC_EXPORT
Definition: GeExport.h:52
bool operator!=(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:403
bool operator==(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:397
OdGeScale2d & setToProduct(const OdGeScale2d &scaleVec, double factor)
OdGeScale2d & set(double xFactor, double yFactor)
OdGeScale2d & postMultBy(const OdGeScale2d &rightSide)
Definition: GeScale2d.h:139
bool isEqualTo(const OdGeScale2d &scaleVec, const OdGeTol &tol=OdGeContext::gTol) const
OdGeScale2d & removeScale(OdGeMatrix2d &xfm)
OdGeScale2d(double factor)
OdGeScale2d & extractScale(const OdGeMatrix2d &xfm)
OdGeScale2d & preMultBy(const OdGeScale2d &leftSide)
Definition: GeScale2d.h:125
OdGeScale2d & setToProduct(const OdGeScale2d &scaleVec1, const OdGeScale2d &scaleVec2)
bool isProportional(const OdGeTol &tol=OdGeContext::gTol) const
OdGeScale2d(double xFactor, double yFactor)
double sx
Definition: GeScale2d.h:344
static GE_STATIC_EXPORT const OdGeScale2d kIdentity
Definition: GeScale2d.h:82
double sy
Definition: GeScale2d.h:345
void getMatrix(OdGeMatrix2d &xfm) const
OdGeScale2d & invert()
OdGeScale2d inverse() const
Definition: GeTol.h:49
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65