public:
//! Creates an empty primitive set for BVH clipping.
- Graphic3d_BvhCStructureSet();
+ Standard_EXPORT Graphic3d_BvhCStructureSet();
//! Returns total number of structures.
- virtual Standard_Integer Size() const Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Integer Size() const Standard_OVERRIDE;
//! Returns AABB of the structure.
- virtual Graphic3d_BndBox3d Box (const Standard_Integer theIdx) const Standard_OVERRIDE;
+ Standard_EXPORT virtual Graphic3d_BndBox3d Box (const Standard_Integer theIdx) const Standard_OVERRIDE;
//! Calculates center of the AABB along given axis.
- virtual Standard_Real Center (const Standard_Integer theIdx,
- const Standard_Integer theAxis) const Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Real Center (const Standard_Integer theIdx,
+ const Standard_Integer theAxis) const Standard_OVERRIDE;
//! Swaps structures with the given indices.
- virtual void Swap (const Standard_Integer theIdx1,
- const Standard_Integer theIdx2) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Swap (const Standard_Integer theIdx1,
+ const Standard_Integer theIdx2) Standard_OVERRIDE;
//! Adds structure to the set.
//! @return true if structure added, otherwise returns false (structure already in the set).
- Standard_Boolean Add (const Graphic3d_CStructure* theStruct);
+ Standard_EXPORT Standard_Boolean Add (const Graphic3d_CStructure* theStruct);
//! Removes the given structure from the set.
//! @return true if structure removed, otherwise returns false (structure is not in the set).
- Standard_Boolean Remove (const Graphic3d_CStructure* theStruct);
+ Standard_EXPORT Standard_Boolean Remove (const Graphic3d_CStructure* theStruct);
//! Cleans the whole primitive set.
- void Clear();
+ Standard_EXPORT void Clear();
//! Returns the structure corresponding to the given ID.
- const Graphic3d_CStructure* GetStructureById (Standard_Integer theId);
+ Standard_EXPORT const Graphic3d_CStructure* GetStructureById (Standard_Integer theId);
//! Access directly a collection of structures.
const NCollection_IndexedMap<const Graphic3d_CStructure*>& Structures() const { return myStructs; }