CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GeBoundBlock3d.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 _OD_GEBOUNDBLOCK3D_H
25#define _OD_GEBOUNDBLOCK3D_H
27#include "Ge/GeEntity3d.h"
28#include "Ge/GeExtents3d.h"
29
30#include "TD_PackPush.h"
31
43{
44public:
45
46
53
65 const OdGePoint3d& base,
66 const OdGeVector3d& side1,
67 const OdGeVector3d& side2,
68 const OdGeVector3d& side3);
69 // TD Special
70
80 const OdGePoint3d& point1,
81 const OdGePoint3d& point2);
82 //
83
93
100 const OdGeMatrix3d& lcs,
101 const OdGeExtents3d& localBox);
102
110 OdGePoint3d& p1,
111 OdGePoint3d& p2) const;
112
121 void get(
122 OdGePoint3d& base,
123 OdGeVector3d& side1,
124 OdGeVector3d& side2,
125 OdGeVector3d& side3) const;
126
134 const OdGePoint3d& p1,
135 const OdGePoint3d& p2);
136
146 const OdGePoint3d& base,
147 const OdGeVector3d& side1,
148 const OdGeVector3d& side2,
149 const OdGeVector3d& side3);
150
158 const OdGePoint3d& point);
159
166 double distance);
167
177 const OdGePoint3d& point,
178 const OdGeTol& tol = OdGeContext::gTol) const;
179
190 const OdGeBoundBlock3d& block,
191 const OdGeTol& tol = OdGeContext::gTol) const;
192
197 bool isBox() const;
198
209 bool toBox);
210
219
221 // TD Special :
222
231
240
245
253 void setToBoxOrtho(const OdGeVector3d &dir1, const OdGeVector3d &dir2, const OdGeVector3d &dir3);
254
258 void setToBoxOrtho();
259};
260
261inline void OdGeBoundBlock3d::setToBoxOrtho(const OdGeVector3d &dir1, const OdGeVector3d &dir2, const OdGeVector3d &dir3)
262{
263 OdGeError status;
267 || status == OdGe::k0This)
271 || status == OdGe::k0This)
275 || status == OdGe::k0This))
276 setToBox(true);
277}
278
280{
281 OdGePoint3d basePt;
282 OdGeVector3d dir1, dir2, dir3;
283 get(basePt, dir1, dir2, dir3);
284 setToBoxOrtho(dir1, dir2, dir3);
285}
286
287#include "TD_PackPop.h"
288
289#endif
tol
Definition: DimVarDefs.h:2287
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
OdGeBoundBlock3d & swell(double distance)
bool isDisjoint(const OdGeBoundBlock3d &block, const OdGeTol &tol=OdGeContext::gTol) const
OdGeBoundBlock3d & set(const OdGePoint3d &p1, const OdGePoint3d &p2)
OdGeBoundBlock3d(const OdGeMatrix3d &lcs, const OdGeExtents3d &localBox)
OdGePoint3d maxPoint() const
bool contains(const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
OdGeBoundBlock3d(const OdGePoint3d &point1, const OdGePoint3d &point2)
OdGeBoundBlock3d(const OdGePoint3d &base, const OdGeVector3d &side1, const OdGeVector3d &side2, const OdGeVector3d &side3)
OdGeBoundBlock3d(const OdGeBoundBlock3d &source)
bool isBox() const
OdGeBoundBlock3d & set(const OdGePoint3d &base, const OdGeVector3d &side1, const OdGeVector3d &side2, const OdGeVector3d &side3)
OdGeBoundBlock3d & setToBox(bool toBox)
void get(OdGePoint3d &base, OdGeVector3d &side1, OdGeVector3d &side2, OdGeVector3d &side3) const
OdGePoint3d center() const
OdGeBoundBlock3d & extend(const OdGePoint3d &point)
void getMinMaxPoints(OdGePoint3d &p1, OdGePoint3d &p2) const
OdGePoint3d minPoint() const
OdGeEntity3d & operator=(const OdGeEntity3d &entity)
Definition: GeTol.h:49
static GE_STATIC_EXPORT const OdGeVector3d kZAxis
Definition: GeVector3d.h:103
bool isParallelTo(const OdGeVector3d &vect, const OdGeTol &tol=OdGeContext::gTol) const
static GE_STATIC_EXPORT const OdGeVector3d kYAxis
Definition: GeVector3d.h:102
static GE_STATIC_EXPORT const OdGeVector3d kXAxis
Definition: GeVector3d.h:101
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65
ErrorCondition
Definition: Ge.h:413
@ k0This
Definition: Ge.h:417