1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 2015 Autodesk, Inc. All rights reserved.
- //
- // Use of this software is subject to the terms of the Autodesk license
- // agreement provided at the time of installation or download, or which
- // otherwise accompanies this software in either electronic or hard copy form.
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- // Description:
- //
- // This file implements the class AcGeExternalSurface, a
- // representation for a surface that has its definition external
- // to gelib.
- //
- #ifndef AC_GEEXTSF_H
- #define AC_GEEXTSF_H
- #include "gegbl.h"
- #include "gesurf.h"
- #pragma pack (push, 8)
- class AcGePlane;
- class AcGeCylinder;
- class AcGeCone;
- class AcGeSphere;
- class AcGeTorus;
- class AcGeNurbSurface;
- class surface;
- class
- GX_DLLEXPIMPORT
- AcGeExternalSurface : public AcGeSurface
- {
- public:
- AcGeExternalSurface();
- AcGeExternalSurface(void* surfaceDef, AcGe::ExternalEntityKind surfaceKind,
- Adesk::Boolean makeCopy = Adesk::kTrue);
- AcGeExternalSurface(const AcGeExternalSurface&);
- // Defining surface.
- //
- void getExternalSurface(void*& surfaceDef) const;
- // Type of the external surface.
- //
- AcGe::ExternalEntityKind externalSurfaceKind() const;
- Adesk::Boolean isPlane () const;
- Adesk::Boolean isSphere () const;
- Adesk::Boolean isCylinder () const;
- Adesk::Boolean isCone () const;
- Adesk::Boolean isTorus () const;
- Adesk::Boolean isNurbSurface() const;
- Adesk::Boolean isDefined () const;
- // Conversion to gelib entity
- //
- Adesk::Boolean isNativeSurface(AcGeSurface*& nativeSurface) const;
- // Assignment operator.
- //
- AcGeExternalSurface& operator = (const AcGeExternalSurface& src);
- // Reset surface
- //
- AcGeExternalSurface& set(void* surfaceDef,
- AcGe::ExternalEntityKind surfaceKind,
- Adesk::Boolean makeCopy = Adesk::kTrue);
- // Ownership of surface.
- //
- Adesk::Boolean isOwnerOfSurface () const;
- AcGeExternalSurface& setToOwnSurface ();
- };
- #pragma pack (pop)
- #endif
|