CFx SDK Documentation  2022 SP0
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
static GE_STATIC_EXPORT const OdGeExtents3d kInvalid
Definition: GeExtents3d.h:60
void addExt(const OdGeExtents3d &extents)
Definition: GeExtents3d.h:306
bool isValidExtents() const
Definition: GeExtents3d.h:120
const OdGePoint3d & maxPoint() const
Definition: GeExtents3d.h:242
const OdGePoint3d & minPoint() const
Definition: GeExtents3d.h:237
bool isEqualTo(const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
bool operator!=(const OdTrVisExtentsDef &extents) const
const OdGeExtents3d & sceneExtents() const
const OdGeExtents3d & preferSceneExtents() const
bool operator==(const OdTrVisExtentsDef &extents) const
OdGeExtents3d m_realExtents
const OdGeExtents3d & preferRealExtents() const
OdGeExtents3d m_sceneExtents
void operator+=(const OdTrVisExtentsDef &extents)
const OdGeExtents3d & realExtents() const