25#ifndef ODTRRNDSGSCENEGRAPHSETTINGSUI
26#define ODTRRNDSGSCENEGRAPHSETTINGSUI
28#include "../extbar/ExtBar.h"
259 template <
typename TypeTo,
typename TypeFrom>
262 to.setDisplayFPS(from.displayFPS());
263 to.setDisplayStatistics(from.displayStatistics());
264 to.setUnionsFading(from.fadeUnions());
265 to.setColorDataExtensible(from.colorDataExtensible());
266 to.setLineStripsExplode(from.explodeLineStrips());
267 to.setTriangleStripsExplode(from.explodeTriangleStrips());
268 to.setTtfTextsFlattening(from.flattenTtfTexts());
269 to.setBlockRefsExploding(from.explodeBlockRefs());
270 to.setAllowNestedSceneGraphs(from.allowNestedSceneGraphs());
271 to.setDrawOrderEmbedding(from.embedDrawOrder());
272 to.setPurgeGrouppedRenders(from.purgeGrouppedRenders());
273 to.setSceneTreeType((
OD_TYPENAME TypeTo::SceneTreeType)from.sceneTreeType());
274 to.setAuxiliaryTreeType((
OD_TYPENAME TypeTo::SceneTreeType)from.auxiliaryTreeType());
275 to.setBalancingMode((
OD_TYPENAME TypeTo::BalancingMode)from.balancingMode());
276 to.setWeightedBalancingLimit(from.weightedBalancingLimit());
277 to.setBalancingLevelLimit(from.balancingLevelLimit());
278 to.setBalancingMergeDepth(from.balancingMergeDepth());
279 to.setMaximalUnionSize(from.maximalUnionSize());
280 to.setLineStripsExplodeLimit(from.lineStripsExplodeLimit());
281 to.setTriangleStripsExplodeLimit(from.triangleStripsExplodeLimit());
282 to.setBlockRefsExplodeLimit(from.blockRefsExplodeLimit());
283 to.setThreadsMaximum(from.threadsMaximum());
285 template <
typename TypeTo,
typename TypeFrom>
288 to.setVisualizeRenders(from.visualizeRenders());
289 to.setVisualizeTreeStructure(from.visualizeTreeStructure());
290 to.setVisualizeRenderExtents(from.visualizeRenderExtents());
291 to.setMaxTreeDepth(from.maxTreeDepth());
292 to.setMaxObjectsSubdivide(from.maxObjectsSubdivide());
293 to.setMinTreeNodeSize(from.minTreeNodeSize());
294 to.setNodeFittingRatio(from.nodeFittingRatio());
295 to.setFirstNodeExtraMultiplier(from.firstNodeExtraMultiplier());
400 {
if (!nReason)
return;
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
virtual RangeElement * createRangeBox(OdUInt32 nElementId, GroupElement *pGroup=NULL, ElementSize size=k8d8, bool bSigned=false, bool bFP=false)=0
virtual Element * getElement(OdUInt32 nElementId) const =0
virtual ListElement * createComboBox(OdUInt32 nElementId, GroupElement *pGroup=NULL, OdUInt32 nOpenLines=4)=0
virtual TextElement * createText(OdUInt32 nElementId, GroupElement *pGroup=NULL, ElementSize size=k8d8, OdUInt32 nStrings=1, bool bBorder=false, ODCOLORREF color=ODRGB(0, 0, 0))=0
virtual GroupElement * createGroup(OdUInt32 nElementId, bool bExpandeable=true, bool bExpanded=true)=0
virtual TextElement * createCheckBox(OdUInt32 nElementId, GroupElement *pGroup=NULL, ElementSize size=k8d8, bool bChecked=false, bool bLText=false)=0
void setThreadsMaximum(OdUInt32 nThreadsMax)
BalancingMode balancingMode() const
bool displayStatistics() const
bool visualizeRenderExtents() const
OdUInt32 blockRefsExplodeLimit() const
static void copyRootsConfig(TypeTo &to, const TypeFrom &from)
@ kUIDisplayStatsCheckBox
@ kUIVisualizeTreesCheckBox
@ kUINodeFittingRatioRangeBox
@ kUIUnionsFadingCheckBox
@ kUIVisualizeRendersCheckBox
@ kUILineStripsLimRangeBox
@ kUIExplodeBlockRefsCheckBox
@ kUIMaxNodeObjectsRangeBox
@ kUIColorDataExtCheckBox
@ kUIEmbedOrderingCheckBox
@ kUIBalancingDepthRangeBox
@ kUINodeFittingRatioText
@ kUIVisualizeExtentsCheckBox
@ kUIBalancingLimitRangeBox
@ kUIPurgeGrouppedCheckBox
@ kUILineStripsExpCheckBox
@ kUISceneTreeTypeComboBox
@ kUIMaxTreeDepthRangeBox
@ kUIVisualizeExtentsText
@ kUITrgStripsExpCheckBox
@ kUIBlkRefExpLimRangeBox
@ kUIBalancingModeComboBox
@ kUINestedGraphsCheckBox
@ kUIVisualizeRendersText
@ kUIExplodeBlockRefsText
@ kUIFirstNodeMultRangeBox
@ kUITrgStripsLimRangeBox
@ kUIMaxUnionSizeRangeBox
void setUnionsFading(bool bEnable)
OdUInt32 m_nLineStripsLim
virtual void elementChanged(ExtBar::Element *)
void setAuxiliaryTreeType(SceneTreeType treeType)
bool colorDataExtensible() const
void setColorDataExtensible(bool bEnable)
double m_fNodeFittingRatio
OdUInt32 m_nMaxObjectsSubdivide
void setTriangleStripsExplodeLimit(OdUInt32 expLimit)
void setFirstNodeExtraMultiplier(double fInitialNodeMult)
void setBalancingMode(BalancingMode balancingMode)
void setLineStripsExplodeLimit(OdUInt32 expLimit)
virtual void closeExtBar(ExtBar *pExtBar, int nReason)
void setBalancingLevelLimit(OdUInt32 minDepthLimit)
SceneTreeType m_sceneTreeType
bool explodeBlockRefs() const
bool allowNestedSceneGraphs() const
SceneTreeType sceneTreeType() const
void setVisualizeRenderExtents(bool bSet)
void setTriangleStripsExplode(bool bEnable)
void setMaxTreeDepth(OdUInt32 nMaxTreeDepth)
void setMaxObjectsSubdivide(OdUInt32 nMaxObjectSubdivide)
void setNodeFittingRatio(double fNodeFittingRatio)
double nodeFittingRatio() const
double m_fMinTreeNodeSize
void setVisualizeRenders(bool bSet)
bool purgeGrouppedRenders() const
void setVisualizeTreeStructure(bool bSet)
OdUInt32 maxTreeDepth() const
OdUInt32 weightedBalancingLimit() const
OdUInt32 balancingMergeDepth() const
OdUInt32 maxObjectsSubdivide() const
OdUInt32 lineStripsExplodeLimit() const
SceneTreeType auxiliaryTreeType() const
void setDisplayStatistics(bool bEnable)
void setBalancingMergeDepth(OdUInt32 mergeDepth)
bool explodeLineStrips() const
double firstNodeExtraMultiplier() const
OdUInt32 threadsMaximum() const
void setLineStripsExplode(bool bEnable)
void setMinTreeNodeSize(double fMinTreeNodeSize)
void setBlockRefsExploding(bool bEnable)
double minTreeNodeSize() const
void setPurgeGrouppedRenders(bool bEnable)
OdTrRndSgSceneGraphSettingsUI()
void setSceneTreeType(SceneTreeType treeType)
BalancingMode m_balancingMode
bool flattenTtfTexts() const
OdUInt32 maximalUnionSize() const
@ kAllowNestedSceneGraphs
@ kVisualizeTreeStructure
@ kVisualizeRenderExtents
bool embedDrawOrder() const
OdTrRndSgSceneGraphSettingsUI & operator=(const OdTrRndSgSceneGraphSettingsUI &uiSets)
bool visualizeRenders() const
OdUInt32 triangleStripsExplodeLimit() const
static void copyGlobalSettings(TypeTo &to, const TypeFrom &from)
void setBlockRefsExplodeLimit(OdUInt32 nLimit)
void setDrawOrderEmbedding(bool bEnable)
bool visualizeTreeStructure() const
virtual void fillExtBar(ExtBar *pExtBar)
void setWeightedBalancingLimit(OdUInt32 weightLimit)
OdUInt32 balancingLevelLimit() const
void setMaximalUnionSize(OdUInt32 nBytes)
bool explodeTriangleStrips() const
void setDisplayFPS(bool bEnable)
double m_fInitialNodeMult
SceneTreeType m_auxTreeType
void setAllowNestedSceneGraphs(bool bEnable)
void setTtfTextsFlattening(bool bEnable)
static CheckElement * cast(Element *pIface)
virtual bool isChecked() const =0
virtual void setSelString(int nString)=0
virtual int getSelString() const =0
virtual void addString(const OdString &string)=0
static ListElement * cast(Element *pIface)
virtual void setFP(double fPos=0.0, double fMin=DBL_MIN, double fMax=DBL_MAX, double fDelta=0.01)=0
virtual void setUInt(OdUInt32 nPos=0, OdUInt32 nMin=0, OdUInt32 nMax=UINT_MAX, OdInt32 nDelta=1)=0
virtual double getPosFP() const =0
static RangeElement * cast(Element *pIface)
virtual OdUInt32 getPosUInt() const =0
static TextElement * cast(Element *pIface)
virtual void setText(const OdString &text)=0