1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- //////////////////////////////////////////////////////////////////////////////
- //
- // 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 contains the class AcGeBoundBlock3d - An entity used to
- // represent a 3d bounding volume, a parallelepiped.
- //
- #ifndef AC_GEBLOCK3D_H
- #define AC_GEBLOCK3D_H
- #include "geent3d.h"
- #pragma pack (push, 8)
- class AcGePoint3d;
- class AcGeVector3d;
- class
- GE_DLLEXPIMPORT
- AcGeBoundBlock3d : public AcGeEntity3d
- {
- public:
-
- AcGeBoundBlock3d ();
- AcGeBoundBlock3d (const AcGePoint3d& base, const AcGeVector3d& dir1,
- const AcGeVector3d& dir2, const AcGeVector3d& dir3);
- AcGeBoundBlock3d (const AcGeBoundBlock3d& block);
-
- // Access methods.
- //
- void getMinMaxPoints (AcGePoint3d& point1,
- AcGePoint3d& point2) const;
- void get (AcGePoint3d& base,
- AcGeVector3d& dir1,
- AcGeVector3d& dir2,
- AcGeVector3d& dir3) const;
- // Set methods.
- //
- AcGeBoundBlock3d& set (const AcGePoint3d& point1,
- const AcGePoint3d& point2);
- AcGeBoundBlock3d& set (const AcGePoint3d& base,
- const AcGeVector3d& dir1,
- const AcGeVector3d& dir2,
- const AcGeVector3d& dir3);
- // Expand to contain point.
- //
- AcGeBoundBlock3d& extend (const AcGePoint3d& point);
-
- // Expand by a specified distance.
- //
- AcGeBoundBlock3d& swell (double distance);
- // Containment and intersection tests
- //
- Adesk::Boolean contains (const AcGePoint3d& point) const;
- Adesk::Boolean isDisjoint (const AcGeBoundBlock3d& block) const;
- // Assignment opearator
- //
- AcGeBoundBlock3d& operator = (const AcGeBoundBlock3d& block);
- Adesk::Boolean isBox () const;
- AcGeBoundBlock3d& setToBox (Adesk::Boolean);
- };
- #pragma pack (pop)
- #endif
|