CFx SDK Documentation  2020SP3
TrVisExtentsDef.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 // GLES2 device scene extents definition
24 
25 #ifndef ODTRVISEXTENTSDEF
26 #define ODTRVISEXTENTSDEF
27 
28 #include "TD_PackPush.h"
29 
30 #include "Ge/GeExtents3d.h"
31 
36 {
39 
40  void setDefault()
41  {
44  }
45  void reset() { setDefault(); }
46 
47  const OdGeExtents3d &sceneExtents() const { return m_sceneExtents; }
48  const OdGeExtents3d &realExtents() const { return m_realExtents; }
49 
50  bool operator ==(const OdTrVisExtentsDef &extents) const
51  {
56  }
57  bool operator !=(const OdTrVisExtentsDef &extents) const
58  {
63  }
64 
65  void operator +=(const OdTrVisExtentsDef &extents)
66  {
67  if (extents.m_sceneExtents.isValidExtents())
69  if (extents.m_realExtents.isValidExtents())
71  }
72 
74  {
76  return m_realExtents;
77  return m_sceneExtents;
78  }
80  {
82  return m_sceneExtents;
83  return m_realExtents;
84  }
85 };
86 
87 #include "TD_PackPop.h"
88 
89 #endif // ODTRVISEXTENTSDEF
OdTrVisExtentsDef::operator+=
void operator+=(const OdTrVisExtentsDef &extents)
Definition: TrVisExtentsDef.h:65
OdTrVisExtentsDef::operator!=
bool operator!=(const OdTrVisExtentsDef &extents) const
Definition: TrVisExtentsDef.h:57
OdTrVisExtentsDef
Definition: TrVisExtentsDef.h:36
GeExtents3d.h
OdGeExtents3d::isValidExtents
bool isValidExtents() const
Definition: GeExtents3d.h:120
TD_PackPop.h
OdGeExtents3d::minPoint
const OdGePoint3d & minPoint() const
Definition: GeExtents3d.h:237
OdTrVisExtentsDef::m_realExtents
OdGeExtents3d m_realExtents
Definition: TrVisExtentsDef.h:38
OdTrVisExtentsDef::reset
void reset()
Definition: TrVisExtentsDef.h:45
OdTrVisExtentsDef::preferRealExtents
const OdGeExtents3d & preferRealExtents() const
Definition: TrVisExtentsDef.h:73
TD_PackPush.h
OdGeExtents3d::addExt
void addExt(const OdGeExtents3d &extents)
Definition: GeExtents3d.h:306
OdGeExtents3d::maxPoint
const OdGePoint3d & maxPoint() const
Definition: GeExtents3d.h:242
OdTrVisExtentsDef::sceneExtents
const OdGeExtents3d & sceneExtents() const
Definition: TrVisExtentsDef.h:47
OdGeExtents3d
Definition: GeExtents3d.h:45
OdTrVisExtentsDef::preferSceneExtents
const OdGeExtents3d & preferSceneExtents() const
Definition: TrVisExtentsDef.h:79
OdTrVisExtentsDef::realExtents
const OdGeExtents3d & realExtents() const
Definition: TrVisExtentsDef.h:48
OdGePoint3d::isEqualTo
bool isEqualTo(const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
OdTrVisExtentsDef::m_sceneExtents
OdGeExtents3d m_sceneExtents
Definition: TrVisExtentsDef.h:37
OdTrVisExtentsDef::setDefault
void setDefault()
Definition: TrVisExtentsDef.h:40
OdTrVisExtentsDef::operator==
bool operator==(const OdTrVisExtentsDef &extents) const
Definition: TrVisExtentsDef.h:50
OdGeExtents3d::kInvalid
static GE_STATIC_EXPORT const OdGeExtents3d kInvalid
Definition: GeExtents3d.h:60