mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-05 12:17:38 +08:00
0027919: Visualization - support multiple transformation persistence groups within single presentation
Added transform persistence property to Graphic3d_Group and Select3D_SensitiveEntity. SelectMgr_ViewerSelector, Graphic3d_Layer and OpenGl_Structure have been updated to process per-group transform persistence within picking, ZFit and rendering. Added zoomable state to Prs3d_ArrowAspect supported by PrsDim_Dimension. Added gp_GTrsf::SetMat4(), opposite to gp_GTrsf::GetMat4().
This commit is contained in:
@@ -40,7 +40,8 @@ void Select3D_SensitiveEntity::DumpJson (Standard_OStream& theOStream, Standard_
|
||||
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
||||
|
||||
OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myOwnerId.get())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mySFactor)
|
||||
OCCT_DUMP_FIELD_VALUES_DUMPED(theOStream, theDepth, myTrsfPers.get())
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL(theOStream, mySFactor)
|
||||
|
||||
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbSubElements());
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <SelectMgr_SelectingVolumeManager.hxx>
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
class Graphic3d_TransformPers;
|
||||
class SelectMgr_EntityOwner;
|
||||
|
||||
//! Abstract framework to define 3D sensitive entities.
|
||||
@@ -93,6 +94,12 @@ public:
|
||||
//! Otherwise, returns identity matrix.
|
||||
virtual gp_GTrsf InvInitLocation() const { return gp_GTrsf(); }
|
||||
|
||||
//! Return transformation persistence.
|
||||
const Handle(Graphic3d_TransformPers)& TransformPersistence() const { return myTrsfPers; }
|
||||
|
||||
//! Set transformation persistence.
|
||||
virtual void SetTransformPersistence (const Handle(Graphic3d_TransformPers)& theTrsfPers) { myTrsfPers = theTrsfPers; }
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
|
||||
|
||||
@@ -103,6 +110,7 @@ protected:
|
||||
protected:
|
||||
|
||||
Handle(SelectMgr_EntityOwner) myOwnerId;
|
||||
Handle(Graphic3d_TransformPers) myTrsfPers;
|
||||
Standard_Integer mySFactor;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user