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

光栅图像特征 更多...

#include <Features_RasterImage.hxx>

类 NXOpen::Features::RasterImage 继承关系图:
NXOpen::Features::Feature NXOpen::NXObject NXOpen::IProfile NXOpen::IFitTo NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject NXOpen::INXObject

Public 类型

enum  MaxTextureSize {
  MaxTextureSizeN512 , MaxTextureSizeN1024 , MaxTextureSizeN2048 , MaxTextureSizeN4096 ,
  MaxTextureSizeN8192 , MaxTextureSizeN16384 , MaxTextureSizeN32768
}
Public 类型 继承自 NXOpen::Features::Feature
enum  BooleanType {
  BooleanTypeCreate , BooleanTypeUnite , BooleanTypeSubtract , BooleanTypeIntersect ,
  BooleanTypeEmbossNormalSide = 8 , BooleanTypeEmbossOppositeNormalSide
}
enum  DiagnosticType { DiagnosticTypeInformation = 1 , DiagnosticTypeWarning }
Public 类型 继承自 NXOpen::NXObject
enum  AttributeType {
  AttributeTypeInvalid , AttributeTypeNull , AttributeTypeBoolean , AttributeTypeInteger ,
  AttributeTypeReal , AttributeTypeString , AttributeTypeTime , AttributeTypeReference ,
  AttributeTypeAny = 100
}
enum  DateAndTimeFormat { DateAndTimeFormatNumeric , DateAndTimeFormatTextual }

Public 成员函数

double Height ()
NXString ImageFileName ()
double Length ()
NXOpen::Matrix3x3 Matrix ()
NXOpen::Features::RasterImage::MaxTextureSize MaximumTextureSize ()
NXOpen::Point3d Origin ()
double Translucency ()
void Update (const NXOpen::Point3d &origin, const NXOpen::Matrix3x3 &matrix, double length, double height, const char *imageFileName, double translucency, NXOpen::Features::RasterImage::MaxTextureSize maximumTextureSize)
void Update (const NXOpen::Point3d &origin, const NXOpen::Matrix3x3 &matrix, double length, double height, const NXString &imageFileName, double translucency, NXOpen::Features::RasterImage::MaxTextureSize maximumTextureSize)
Public 成员函数 继承自 NXOpen::Features::Feature
bool BreakWaveLink ()
void ChangeBooleanType ()
NXOpen::Features::IContainerFeatureContainerFeature ()
void DeleteClueAlerts ()
void DeleteHintAlerts ()
void DeleteInformationalAlerts ()
void DeleteWarningAlerts ()
NXString FeatureType ()
std::vector< NXOpen::Features::Feature * > GetAllChildren ()
std::vector< NXOpen::Body * > GetBodies ()
std::vector< NXOpen::Features::Feature * > GetChildren ()
std::vector< NXOpen::Edge * > GetEdges ()
std::vector< NXOpen::NXObject * > GetEntities ()
std::vector< NXOpen::Expression * > GetExpressions ()
std::vector< NXOpen::Face * > GetFaces ()
std::vector< NXStringGetFeatureClueHintMessages ()
std::vector< NXStringGetFeatureClueMessages ()
NXOpen::NXColorGetFeatureColor ()
std::vector< NXStringGetFeatureErrorMessages ()
std::vector< NXStringGetFeatureHintMessages ()
std::vector< NXStringGetFeatureInformationalMessages ()
NXString GetFeatureName ()
std::vector< NXStringGetFeatureWarningMessages ()
std::vector< NXOpen::Features::Feature * > GetParents ()
std::vector< NXOpen::Section * > GetSections ()
void HideBody ()
void HideParents ()
void HideSlaveFeatures (const std::vector< NXOpen::Features::Feature * > &slaveFeatures)
void Highlight ()
bool IsAssociative ()
bool IsBrowsableFeature ()
bool IsInternal ()
bool IsOutOfDate ()
void LoadParentPart ()
NXOpen::Point3d Location ()
void LogDiagnostic (int errorCode, const char *message, NXOpen::Features::Feature::DiagnosticType diagnosticType)
void LogDiagnostic (int errorCode, const NXString &message, NXOpen::Features::Feature::DiagnosticType diagnosticType)
void MakeCurrentFeature ()
void MakeSketchExternal ()
void MakeSketchInternal ()
 NX_DEPRECATED ("在 NX9.0.0 中已过时。请使用 NXOpen::Features::Feature::ContainerFeature 并检查其是否为 NULL 替代。") bool IsContainedFeature()
 NX_DEPRECATED ("Deprecated in NX8.5.0. Algorithm version is for internal use only. There is no replacement for this method.") int AlgorithmVersion()
void RemoveForEdit (bool dependent)
void RemoveParameters ()
void SetGroupActive (bool active)
void ShowBody (bool moveCurves)
void ShowDimensions ()
void ShowParents (bool moveCurves)
void ShowSlaveFeatures (std::vector< NXOpen::Features::Feature * > &slaveFeatures)
void Suppress ()
bool Suppressed ()
int Timestamp ()
void Unhighlight ()
void Unsuppress ()
Public 成员函数 继承自 NXOpen::NXObject
NXOpen::AttributeIteratorCreateAttributeIterator ()
NX_DEPRECATED("Deprecated in NX8.0.0. Use DeleteUserAttribute instead.") void DeleteAttributeByTypeAndTitle(NXOpen void DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title)
NX_DEPRECATED("Deprecated in NX8.0.0. Use DeleteUserAttribute instead.") void DeleteAttributeByTypeAndTitle(NXOpen void DeleteAttributeByTypeAndTitle (NXOpen::NXObject::AttributeType type, const char *title, NXOpen::Update::Option option)
void DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const char *title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteUserAttribute (NXOpen::NXObject::AttributeType type, const NXString &title, bool deleteEntireArray, NXOpen::Update::Option option)
void DeleteUserAttributes (NXOpen::AttributeIterator *iterator, NXOpen::Update::Option option)
void DeleteUserAttributes (NXOpen::NXObject::AttributeType type, NXOpen::Update::Option option)
virtual NXOpen::INXObjectFindObject (const char *journalIdentifier)
virtual NXOpen::INXObjectFindObject (const NXString &journalIdentifier)
bool GetBooleanUserAttribute (const char *title, int index)
bool GetBooleanUserAttribute (const NXString &title, int index)
NXOpen::NXObject::ComputationalTime GetComputationalTimeUserAttribute (const char *title, int index)
NXOpen::NXObject::ComputationalTime GetComputationalTimeUserAttribute (const NXString &title, int index)
int GetIntegerAttribute (const char *title)
int GetIntegerUserAttribute (const char *title, int index)
int GetIntegerUserAttribute (const NXString &title, int index)
bool GetNextUserAttribute (NXOpen::AttributeIterator *iterator, NXOpen::NXObject::AttributeInformation *info)
NXString GetPdmReferenceAttributeValue (const char *attributeTitle)
 获取指定对象的PDM参考属性值。 用户需提供属性标题,将返回UI显示的属性值。
NXString GetPdmReferenceAttributeValue (const NXString &attributeTitle)
 获取指定对象的PDM参考属性值。 用户需提供属性标题,将返回UI显示的属性值。
double GetRealAttribute (const char *title)
double GetRealUserAttribute (const char *title, int index)
double GetRealUserAttribute (const NXString &title, int index)
NXString GetReferenceAttribute (const char *title)
NXString GetStringAttribute (const char *title)
NXString GetStringUserAttribute (const char *title, int index)
NXString GetStringUserAttribute (const NXString &title, int index)
NX_DEPRECATED("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetTimeAttribute(NXOpen NXString GetTimeAttribute (NXOpen::NXObject::DateAndTimeFormat format, const char *title)
NXString GetTimeUserAttribute (const char *title, int index)
NXString GetTimeUserAttribute (const NXString &title, int index)
NX_DEPRECATED("Deprecated in NX11.0.0. Use GetUserAttribute instead.") std std::vector< NXOpen::NXObject::AttributeInformationGetUserAttribute (const char *title, bool includeUnset, bool addStringValues, NXOpen::NXObject::AttributeType type)
NXOpen::NXObject::AttributeInformation GetUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXOpen::NXObject::AttributeInformation GetUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
NXString GetUserAttributeAsString (const char *title, NXOpen::NXObject::AttributeType type, int index)
NXString GetUserAttributeAsString (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
int GetUserAttributeCount (NXOpen::AttributeIterator *iterator)
int GetUserAttributeCount (NXOpen::AttributeIterator *iterator, bool countArrayAsOneAttribute)
int GetUserAttributeCount (NXOpen::NXObject::AttributeType type)
int GetUserAttributeCount (NXOpen::NXObject::AttributeType type, bool includeUnset, bool countArrayAsOneAttribute)
bool GetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type)
bool GetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes ()
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes (bool includeUnset)
std::vector< NXOpen::NXObject::AttributeInformationGetUserAttributes (NXOpen::AttributeIterator *iterator)
int GetUserAttributeSize (const char *title, NXOpen::NXObject::AttributeType type)
int GetUserAttributeSize (const NXString &title, NXOpen::NXObject::AttributeType type)
std::vector< NXOpen::NXObject * > GetUserAttributeSourceObjects ()
bool HasUserAttribute (const char *title, NXOpen::NXObject::AttributeType type, int index)
bool HasUserAttribute (const NXString &title, NXOpen::NXObject::AttributeType type, int index)
bool HasUserAttribute (NXOpen::AttributeIterator *iterator)
virtual bool IsOccurrence ()
virtual NXString JournalIdentifier ()
virtual NXString Name ()
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") double GetRealAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") int GetIntegerAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetReferenceAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use GetUserAttribute instead.") NXString GetStringAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetAttribute(const NXString &title)
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetReferenceAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetReferenceAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetTimeAttribute(const NXString &title
 NX_DEPRECATED ("Deprecated in NX8.0.0. Use SetUserAttribute instead.") void SetTimeAttribute(const NXString &title
virtual NXOpen::Assemblies::ComponentOwningComponent ()
virtual NXOpen::BasePartOwningPart ()
virtual void Print ()
virtual NXOpen::INXObjectPrototype ()
void SetAttribute (const char *title)
void SetAttribute (const char *title, const char *value)
void SetAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetAttribute (const char *title, double value)
void SetAttribute (const char *title, double value, NXOpen::Update::Option option)
void SetAttribute (const char *title, int value)
void SetAttribute (const char *title, int value, NXOpen::Update::Option option)
void SetAttribute (const char *title, NXOpen::Update::Option option)
void SetBooleanUserAttribute (const char *title, int index, bool value, NXOpen::Update::Option option)
void SetBooleanUserAttribute (const NXString &title, int index, bool value, NXOpen::Update::Option option)
virtual void SetName (const char *name)
virtual void SetName (const NXString &name)
void SetPdmReferenceAttribute (const char *attributeTitle, const char *attributeValue)
 设置对象的PDM参考属性值。 用户需提供属性标题和UI显示的别名值。若参考属性为数组类型,此操作将被忽略。 别名字符串会转换为内部值(如会话标识符),并将该内部值设置到指定对象上。
创建于NX12.0.0。

许可要求:无
void SetPdmReferenceAttribute (const NXString &attributeTitle, const NXString &attributeValue)
 设置对象的PDM参考属性值。 用户需提供属性标题和UI显示的别名值。若参考属性为数组类型,此操作将被忽略。 别名字符串会转换为内部值(如会话标识符),并将该内部值设置到指定对象上。
创建于NX12.0.0。

许可要求:无
void SetReferenceAttribute (const char *title, const char *value)
void SetReferenceAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetTimeAttribute (const char *title, const char *value)
void SetTimeAttribute (const char *title, const char *value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const char *title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const NXString &title, int index, const NXOpen::NXObject::ComputationalTime &value, NXOpen::Update::Option option)
void SetTimeUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, const char *value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, double value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, int value, NXOpen::Update::Option option)
void SetUserAttribute (const char *title, int index, NXOpen::Update::Option option)
void SetUserAttribute (const NXOpen::NXObject::AttributeInformation &info, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, const NXString &value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, double value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, int value, NXOpen::Update::Option option)
void SetUserAttribute (const NXString &title, int index, NXOpen::Update::Option option)
void SetUserAttributeLock (const char *title, NXOpen::NXObject::AttributeType type, bool lock)
void SetUserAttributeLock (const NXString &title, NXOpen::NXObject::AttributeType type, bool lock)
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _RasterImageBuilder

额外继承的成员函数

Public 属性 继承自 NXOpen::NXObject
NXOpen::Update::Option option
const NXString NXOpen::Update::Option option
double NXOpen::Update::Option option
int NXOpen::Update::Option option
const NXStringvalue
double value
int value

详细描述

光栅图像特征

表示光栅图像特征
目前不被KF支持

创建于NX4.0.0版本。

成员枚举类型说明

◆ MaxTextureSize

指定光栅图像宽度或高度允许的最大像素数。如果请求的尺寸大于硬件支持的尺寸,则使用最大支持尺寸。所有硬件至少支持512x512像素。

枚举值
MaxTextureSizeN512 

最大尺寸 512 x 512

MaxTextureSizeN1024 

最大尺寸 1024 x 1024

MaxTextureSizeN2048 

最大尺寸 2048 x 2048

MaxTextureSizeN4096 

最大尺寸 4096 x 4096

MaxTextureSizeN8192 

最大尺寸 8192 x 8192

MaxTextureSizeN16384 

最大尺寸 16384 x 16384

MaxTextureSizeN32768 

最大尺寸 32768 x 32768

成员函数说明

◆ Height()

double NXOpen::Features::RasterImage::Height ( )

获取图像的高度,以部件单位(mm或in)为单位
创建于NX4.0.0版本。

许可证要求:无

◆ ImageFileName()

NXString NXOpen::Features::RasterImage::ImageFileName ( )

获取用于光栅图像的图像文件名。
创建于NX4.0.0版本。

许可证要求:无

◆ Length()

double NXOpen::Features::RasterImage::Length ( )

获取图像的长度,以部件单位(mm或in)为单位。有时被视为图像的宽度。
创建于NX4.0.0版本。

许可证要求:无

◆ Matrix()

NXOpen::Matrix3x3 NXOpen::Features::RasterImage::Matrix ( )

获取光栅图像的旋转矩阵
创建于NX4.0.0版本。

许可证要求:无

◆ MaximumTextureSize()

NXOpen::Features::RasterImage::MaxTextureSize NXOpen::Features::RasterImage::MaximumTextureSize ( )

获取图像最大尺寸的枚举值,以像素为单位
创建于NX4.0.0版本。

许可证要求:无

◆ Origin()

NXOpen::Point3d NXOpen::Features::RasterImage::Origin ( )

获取光栅图像的原点
创建于NX4.0.0版本。

许可证要求:无

◆ Translucency()

double NXOpen::Features::RasterImage::Translucency ( )

获取光栅图像的透明度,范围为[0.0, 1.0]
创建于NX4.0.0版本。

许可证要求:无

◆ Update() [1/2]

void NXOpen::Features::RasterImage::Update ( const NXOpen::Point3d & origin,
const NXOpen::Matrix3x3 & matrix,
double length,
double height,
const char * imageFileName,
double translucency,
NXOpen::Features::RasterImage::MaxTextureSize maximumTextureSize )

更新光栅图像特征
创建于NX4.0.0版本。

许可证要求:studio_visualize ("STUDIO VISUALIZE")

参数
origin光栅图像的原点
matrix光栅图像的旋转矩阵
length图像长度,以部件单位(mm或in)为单位
height图像高度,以部件单位(mm或in)为单位
imageFileName要使用的图像文件名。目前,必须是.tif文件
translucency0.0表示不透明,1.0表示完全透明
maximumTextureSize最大纹理尺寸

◆ Update() [2/2]

void NXOpen::Features::RasterImage::Update ( const NXOpen::Point3d & origin,
const NXOpen::Matrix3x3 & matrix,
double length,
double height,
const NXString & imageFileName,
double translucency,
NXOpen::Features::RasterImage::MaxTextureSize maximumTextureSize )

更新光栅图像特征
创建于NX4.0.0版本。

许可证要求:studio_visualize ("STUDIO VISUALIZE")

参数
origin光栅图像的原点
matrix光栅图像的旋转矩阵
length图像长度,以部件单位(mm或in)为单位
height图像高度,以部件单位(mm或in)为单位
imageFileName要使用的图像文件名。目前,必须是.tif文件
translucency0.0表示不透明,1.0表示完全透明
maximumTextureSize最大纹理尺寸