CFx SDK Documentation  2023 SP0
GeExternalSurface.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 
24 #ifndef OD_GEEXTSF_H
25 #define OD_GEEXTSF_H
27 #include "Ge/GeSurface.h"
28 
29 #include "TD_PackPush.h"
30 
31 class OdGePlane;
32 class OdGeCylinder;
33 class OdGeCone;
34 class OdGeSphere;
35 class OdGeTorus;
36 class OdGeNurbSurface;
37 class OdGeEllipCone; // AE 03.09.2003
38 class OdGeEllipCylinder; // AE 09.09.2003
39 
56 {
57 public:
58 
59 
76  void* pSurfaceDef,
77  OdGe::ExternalEntityKind surfaceKind,
78  bool makeCopy = true);
81 
91  void*& pSurfaceDef) const;
92 
93  // Type of the external surface.
94  //
95 
107 
111  bool isPlane() const;
112 
116  bool isSphere() const;
117 
121  bool isCylinder() const;
122 
126  bool isCone() const;
127 
131  bool isEllipCylinder() const;
132 
136  bool isEllipCone() const;
137 
141  bool isTorus() const;
142 
146  bool isNurbSurface() const;
147 
151  bool isDefined() const;
152 
163  OdGeSurface*& nativeSurface) const;
164 
165  // Assignment operator.
166  //
167 
169  const OdGeExternalSurface& extSurf);
170 
171  // Reset surface
172  //
173 
183  void* pSurfaceDef,
184  OdGe::ExternalEntityKind surfaceKind,
185  bool makeCopy = true);
186 
194  bool isOwnerOfSurface() const;
195 
204 
206 };
207 
208 #include "TD_PackPop.h"
209 
210 #endif // OD_GEEXTSF_H
211 
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
bool isDefined() const
bool isCylinder() const
bool isTorus() const
bool isCone() const
OdGeExternalSurface(const OdGeExternalSurface &source)
void getExternalSurface(void *&pSurfaceDef) const
OdGeExternalSurface & set(void *pSurfaceDef, OdGe::ExternalEntityKind surfaceKind, bool makeCopy=true)
OdGe::ExternalEntityKind externalSurfaceKind() const
bool isPlane() const
OdGeExternalSurface(void *pSurfaceDef, OdGe::ExternalEntityKind surfaceKind, bool makeCopy=true)
bool isNativeSurface(OdGeSurface *&nativeSurface) const
OdGeExternalSurface & setToOwnSurface()
bool isOwnerOfSurface() const
bool isEllipCylinder() const
bool isEllipCone() const
bool isNurbSurface() const
bool isSphere() const
OdGeSurface & operator=(const OdGeSurface &surf)
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
ExternalEntityKind
Definition: Ge.h:153