1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- // 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.
- //
- //////////////////////////////////////////////////////////////////////////////
- #ifndef __AXPNT3D_H_
- #define __AXPNT3D_H_
- #include "gept3dar.h"
- #include "gepnt3d.h"
- #include "gevec3d.h"
- #pragma pack (push, 8)
- #ifndef AXAUTOEXP
- #ifdef AXAUTO_DLL
- #define AXAUTOEXP __declspec(dllexport)
- #else
- #define AXAUTOEXP __declspec(dllimport)
- #endif
- #endif
- #pragma warning(disable : 4290)
- class AXAUTOEXP AcAxPoint3d : public AcGePoint3d
- {
- public:
- // constructors
- AcAxPoint3d();
- AcAxPoint3d(double x, double y, double z);
- AcAxPoint3d(const AcGePoint3d& pt);
- AcAxPoint3d(const AcGeVector3d& pt);
- AcAxPoint3d(const VARIANT* var) throw(HRESULT);
- AcAxPoint3d(const VARIANT& var) throw(HRESULT);
- AcAxPoint3d(const SAFEARRAY* safeArrayPt) throw(HRESULT);
- // equal operators
- AcAxPoint3d& operator=(const AcGePoint3d& pt);
- AcAxPoint3d& operator=(const AcGeVector3d& pt);
- AcAxPoint3d& operator=(const VARIANT* var) throw(HRESULT);
- AcAxPoint3d& operator=(const VARIANT& var) throw(HRESULT);
- AcAxPoint3d& operator=(const SAFEARRAY* safeArrayPt) throw(HRESULT);
- // type requests
- VARIANT* asVariantPtr() const throw(HRESULT);
- SAFEARRAY* asSafeArrayPtr() const throw(HRESULT);
- VARIANT& setVariant(VARIANT& var) const throw(HRESULT);
- VARIANT* setVariant(VARIANT* var) const throw(HRESULT);
- // utilities
- private:
- AcAxPoint3d& fromSafeArray(const SAFEARRAY* safeArrayPt) throw(HRESULT);
- };
- #pragma warning(disable : 4275)
- class AXAUTOEXP AcAxPoint3dArray : public AcGePoint3dArray
- {
- public:
- // equal operators
- AcAxPoint3dArray& append(const AcGePoint3d& pt);
- AcAxPoint3dArray& append(const VARIANT* var) throw(HRESULT);
- AcAxPoint3dArray& append(const VARIANT& var) throw(HRESULT);
- AcAxPoint3dArray& append(const SAFEARRAY* safeArrayPt) throw(HRESULT);
-
-
- // type requests
- SAFEARRAY* asSafeArrayPtr() const throw(HRESULT);
- VARIANT& setVariant(VARIANT& var) const throw(HRESULT);
- VARIANT* setVariant(VARIANT* var) const throw(HRESULT);
- // utilities
- private:
- AcAxPoint3dArray& fromSafeArray(const SAFEARRAY* safeArrayPt) throw(HRESULT);
- };
- #pragma pack (pop)
- #endif
|