NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::ViewDependentDisplayManager类 参考

视图相关显示管理器 更多...

#include <ViewDependentDisplayManager.hxx>

Public 类型

enum  Font {
  FontInvisible , FontSolid , FontDashed , FontPhantom ,
  FontCenterline , FontDotted , FontLongDashed , FontDottedDashed ,
  FontObject , FontEight = 11 , FontNine , FontTen ,
  FontEleven
}
enum  PartialShading { PartialShadingNoChange , PartialShadingOriginal , PartialShadingNo , PartialShadingYes }
enum  Translucency { TranslucencyNoChange , TranslucencyOriginal , TranslucencyYes }
enum  Width {
  WidthNormal , WidthThick , WidthThin , WidthObject ,
  WidthOne = 5 , WidthTwo , WidthThree , WidthFour ,
  WidthFive , WidthSix , WidthSeven , WidthEight ,
  WidthNine
}

Public 成员函数

void ApplySegmentEdit (NXOpen::DisplayableObject *object, NXOpen::NXColor *color, NXOpen::ViewDependentDisplayManager::Font font, NXOpen::ViewDependentDisplayManager::Width width, const std::vector< double > &segmentStart, const std::vector< double > &segmentEnd)
void ApplySegmentEdit (NXOpen::DisplayableObject *object, NXOpen::ViewDependentDisplayManager::Font font, NXOpen::ViewDependentDisplayManager::Width width, const std::vector< double > &segmentStart, const std::vector< double > &segmentEnd)
void ApplyShadeEdit (NXOpen::NXColor *shadeColor, NXOpen::ViewDependentDisplayManager::PartialShading partialShading, NXOpen::ViewDependentDisplayManager::Translucency translucencyOption, int translucencyScale, const std::vector< NXOpen::DisplayableObject * > &objects)
void ApplyShadeEdit (NXOpen::ViewDependentDisplayManager::PartialShading partialShading, NXOpen::ViewDependentDisplayManager::Translucency translucencyOption, int translucencyScale, const std::vector< NXOpen::DisplayableObject * > &objects)
void ApplyWireframeEdit (NXOpen::NXColor *color, NXOpen::ViewDependentDisplayManager::Font font, NXOpen::ViewDependentDisplayManager::Width width, const std::vector< NXOpen::DisplayableObject * > &objects)
void ApplyWireframeEdit (NXOpen::ViewDependentDisplayManager::Font font, NXOpen::ViewDependentDisplayManager::Width width, const std::vector< NXOpen::DisplayableObject * > &objects)
void Erase (const std::vector< NXOpen::DisplayableObject * > &objects)
void MoveToModel (const std::vector< NXOpen::DisplayableObject * > &objects)
void MoveToView (const std::vector< NXOpen::DisplayableObject * > &objects)
void RemoveAllEdits ()
void RemoveEdit (const std::vector< NXOpen::DisplayableObject * > &objects)
void RemoveErasureOnObjectAndSubobjects (const std::vector< NXOpen::DisplayableObject * > &objects, bool removeFromSubObjects)
void SetBackground (const std::vector< NXOpen::DisplayableObject * > &objects)
tag_t Tag () const

详细描述

视图相关显示管理器

表示所有视图相关的显示操作
要获取此类的实例,请参考 NXOpen::View

创建于 NX5.0.0.

成员枚举类型说明

◆ Font

为线框编辑指定字体
创建于 NX5.0.0.

枚举值
FontInvisible 

不可见

FontSolid 

实线

FontDashed 

虚线

FontPhantom 

幻影线

FontCenterline 

中心线

FontDotted 

点线

FontLongDashed 

长虚线

FontDottedDashed 

点划线

FontObject 

对象原始

FontEight 

长虚线双点

FontNine 

对于默认字体为长虚线点,对于造船字体为波浪线

FontTen 

对于默认字体为长虚线三点,对于造船字体为锯齿线

FontEleven 

对于默认字体为长虚线双短虚线,对于造船字体为铁路线

◆ PartialShading

为着色编辑指定部分着色选项
创建于 NX5.0.0.

枚举值
PartialShadingNoChange 

无变化

PartialShadingOriginal 

原始

PartialShadingNo 

PartialShadingYes 

◆ Translucency

为着色编辑指定半透明选项
创建于 NX5.0.0.

枚举值
TranslucencyNoChange 

无变化

TranslucencyOriginal 

原始

TranslucencyYes 

◆ Width

为线框编辑指定宽度
创建于 NX5.0.0.

枚举值
WidthNormal 

正常

WidthThick 

WidthThin 

WidthObject 

对象原始

WidthOne 

WidthTwo 

WidthThree 

WidthFour 

WidthFive 

WidthSix 

WidthSeven 

WidthEight 

WidthNine 

成员函数说明

◆ ApplySegmentEdit() [1/2]

void NXOpen::ViewDependentDisplayManager::ApplySegmentEdit ( NXOpen::DisplayableObject * object,
NXOpen::NXColor * color,
NXOpen::ViewDependentDisplayManager::Font font,
NXOpen::ViewDependentDisplayManager::Width width,
const std::vector< double > & segmentStart,
const std::vector< double > & segmentEnd )

在视图中对指定对象应用线段编辑。
创建于 NX5.0.0。

许可证要求:无

参数
object对象
color颜色
font字体
width宽度
segmentStartsegment_start 和 segment_end 数组的长度必须匹配。
segmentEndsegment_start 和 segment_end 数组的长度必须匹配。

◆ ApplySegmentEdit() [2/2]

void NXOpen::ViewDependentDisplayManager::ApplySegmentEdit ( NXOpen::DisplayableObject * object,
NXOpen::ViewDependentDisplayManager::Font font,
NXOpen::ViewDependentDisplayManager::Width width,
const std::vector< double > & segmentStart,
const std::vector< double > & segmentEnd )

当颜色为原始颜色时,在视图中对指定对象应用线段编辑。
创建于 NX6.0.3。

许可证要求:无

参数
object对象
font字体
width宽度
segmentStartsegment_start 和 segment_end 数组的长度必须匹配。
segmentEndsegment_start 和 segment_end 数组的长度必须匹配。

◆ ApplyShadeEdit() [1/2]

void NXOpen::ViewDependentDisplayManager::ApplyShadeEdit ( NXOpen::NXColor * shadeColor,
NXOpen::ViewDependentDisplayManager::PartialShading partialShading,
NXOpen::ViewDependentDisplayManager::Translucency translucencyOption,
int translucencyScale,
const std::vector< NXOpen::DisplayableObject * > & objects )

在视图中对指定的面和/或体应用着色编辑。
创建于 NX5.0.0。

许可证要求:无

参数
shadeColor着色颜色
partialShading部分着色
translucencyOption半透明选项
translucencyScale新的半透明值,范围为 0 到 100
objects对象

◆ ApplyShadeEdit() [2/2]

void NXOpen::ViewDependentDisplayManager::ApplyShadeEdit ( NXOpen::ViewDependentDisplayManager::PartialShading partialShading,
NXOpen::ViewDependentDisplayManager::Translucency translucencyOption,
int translucencyScale,
const std::vector< NXOpen::DisplayableObject * > & objects )

当着色颜色为原始颜色时,在视图中对指定的面和/或体应用着色编辑。
创建于 NX6.0.3。

许可证要求:无

参数
partialShading部分着色
translucencyOption半透明选项
translucencyScale新的半透明值,范围为 0 到 100
objects对象

◆ ApplyWireframeEdit() [1/2]

void NXOpen::ViewDependentDisplayManager::ApplyWireframeEdit ( NXOpen::NXColor * color,
NXOpen::ViewDependentDisplayManager::Font font,
NXOpen::ViewDependentDisplayManager::Width width,
const std::vector< NXOpen::DisplayableObject * > & objects )

在视图中对指定对象应用线框编辑。
创建于 NX5.0.0。

许可证要求:无

参数
color颜色
font字体
width宽度
objects对象

◆ ApplyWireframeEdit() [2/2]

void NXOpen::ViewDependentDisplayManager::ApplyWireframeEdit ( NXOpen::ViewDependentDisplayManager::Font font,
NXOpen::ViewDependentDisplayManager::Width width,
const std::vector< NXOpen::DisplayableObject * > & objects )

当颜色为原始颜色时,在视图中对指定对象应用线框编辑。
创建于 NX6.0.3。

许可证要求:无

参数
font字体
width宽度
objects对象

◆ Erase()

void NXOpen::ViewDependentDisplayManager::Erase ( const std::vector< NXOpen::DisplayableObject * > & objects)

在视图中擦除指定对象。
创建于 NX5.0.0。

许可证要求:无

参数
objects对象

◆ MoveToModel()

void NXOpen::ViewDependentDisplayManager::MoveToModel ( const std::vector< NXOpen::DisplayableObject * > & objects)

将视图对象移动到模型。
创建于 NX5.0.0。

许可要求:无

参数
objects要操作的对象

◆ MoveToView()

void NXOpen::ViewDependentDisplayManager::MoveToView ( const std::vector< NXOpen::DisplayableObject * > & objects)

将模型对象移动到视图。
创建于 NX5.0.0。

许可要求:无

参数
objects要操作的对象

◆ RemoveAllEdits()

void NXOpen::ViewDependentDisplayManager::RemoveAllEdits ( )

从视图的所有对象中移除所有编辑和擦除操作。
创建于 NX5.0.0。

许可要求:无

◆ RemoveEdit()

void NXOpen::ViewDependentDisplayManager::RemoveEdit ( const std::vector< NXOpen::DisplayableObject * > & objects)

从视图中的指定对象移除编辑。
创建于 NX5.0.0。

许可证要求:无

参数
objects对象

◆ RemoveErasureOnObjectAndSubobjects()

void NXOpen::ViewDependentDisplayManager::RemoveErasureOnObjectAndSubobjects ( const std::vector< NXOpen::DisplayableObject * > & objects,
bool removeFromSubObjects )

从视图中的指定对象移除擦除。

弃用
在 NX11.0.0 中已废弃。使用 NXOpen::ViewDependentDisplayManager::RemoveErasureOnObjectAndSubobjects 替代。

创建于 NX5.0.0。

许可证要求:无

对象 从视图中的指定对象和可选子对象移除擦除。
创建于 NX11.0.0。

许可证要求:无

参数
objects对象
removeFromSubObjects从子对象移除

◆ SetBackground()

void NXOpen::ViewDependentDisplayManager::SetBackground ( const std::vector< NXOpen::DisplayableObject * > & objects)

设置背景对象的可见性。
创建于 NX5.0.0。

许可要求:无

参数
objects要操作的对象

◆ Tag()

tag_t NXOpen::ViewDependentDisplayManager::Tag ( ) const

返回该对象的标签。