NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Display::GridBuilder Class Reference

Represents the builder for adding a grid NXOpen::Display::Grid
This is an abstract class, and cannot be instantiated. More...

Inheritance diagram for NXOpen::Display::GridBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder NXOpen::Display::BoundedGridBuilder NXOpen::Display::DatumPlaneGridBuilder NXOpen::Display::PlaneGridBuilder

Public Types

enum  LineStyleType {
  LineStyleTypeSolid, LineStyleTypeDashed, LineStyleTypePhantom, LineStyleTypeCenterline,
  LineStyleTypeDotted, LineStyleTypeLongdash, LineStyleTypeDotdash
}
 Specifies line style to be used for major and minor lines of the grid. More...
 
enum  LineWeightType {
  LineWeightTypeThin, LineWeightTypeNormal, LineWeightTypeThick, LineWeightTypeOne,
  LineWeightTypeTwo, LineWeightTypeThree, LineWeightTypeFour, LineWeightTypeFive,
  LineWeightTypeSix, LineWeightTypeSeven, LineWeightTypeEight, LineWeightTypeNine
}
 Specifies line weight to be used for major and minor lines of the grid. More...
 

Public Member Functions

void InheritSettings (NXOpen::Display::Grid *grid)
 Inherits the settings from the specified grid. More...
 
NXOpen::NXColorLineColor ()
 Returns the line color
Created in NX6.0.0. More...
 
double MajorLineSpacing ()
 Returns the major line spacing
Created in NX6.0.0. More...
 
NXOpen::Display::GridBuilder::LineStyleType MajorLineStyle ()
 Returns the major line style
Created in NX6.0.0. More...
 
NXOpen::Display::GridBuilder::LineWeightType MajorLineWeight ()
 Returns the major line weight
Created in NX6.0.0. More...
 
int MinorLinesPerMajor ()
 Returns the minor lines per major
Created in NX6.0.0. More...
 
NXOpen::Display::GridBuilder::LineStyleType MinorLineStyle ()
 Returns the minor line style
Created in NX6.0.0. More...
 
NXOpen::Display::GridBuilder::LineWeightType MinorLineWeight ()
 Returns the minor line weight
Created in NX6.0.0. More...
 
void SetLineColor (NXOpen::NXColor *lineColor)
 Sets the line color
Created in NX6.0.0. More...
 
void SetMajorLineSpacing (double majorLineSpacing)
 Sets the major line spacing
Created in NX6.0.0. More...
 
void SetMajorLineStyle (NXOpen::Display::GridBuilder::LineStyleType majorLineStyle)
 Sets the major line style
Created in NX6.0.0. More...
 
void SetMajorLineWeight (NXOpen::Display::GridBuilder::LineWeightType majorLineWeight)
 Sets the major line weight
Created in NX6.0.0. More...
 
void SetMinorLinesPerMajor (int minorLinesPerMajor)
 Sets the minor lines per major
Created in NX6.0.0. More...
 
void SetMinorLineStyle (NXOpen::Display::GridBuilder::LineStyleType minorLineStyle)
 Sets the minor line style
Created in NX6.0.0. More...
 
void SetMinorLineWeight (NXOpen::Display::GridBuilder::LineWeightType minorLineWeight)
 Sets the minor line weight
Created in NX6.0.0. More...
 
void SetShow (bool show)
 Sets the show
Created in NX6.0.0. More...
 
void SetShowMajorLines (bool showMajorLines)
 Sets the show major lines
Created in NX6.0.0. More...
 
void SetShowOnTop (bool showOnTop)
 Sets the show on top
Created in NX6.0.0. More...
 
void SetSnapPointsPerMinor (int snapPointsPerMinor)
 Sets the snap points per minor
Created in NX6.0.0. More...
 
void SetSnapToGrid (bool snapToGrid)
 Sets the snap to grid
Created in NX6.0.0. More...
 
bool Show ()
 Returns the show
Created in NX6.0.0. More...
 
bool ShowMajorLines ()
 Returns the show major lines
Created in NX6.0.0. More...
 
bool ShowOnTop ()
 Returns the show on top
Created in NX6.0.0. More...
 
int SnapPointsPerMinor ()
 Returns the snap points per minor
Created in NX6.0.0. More...
 
bool SnapToGrid ()
 Returns the snap to grid
Created in NX6.0.0. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents the builder for adding a grid NXOpen::Display::Grid
This is an abstract class, and cannot be instantiated.



Created in NX6.0.0.

Member Enumeration Documentation

Specifies line style to be used for major and minor lines of the grid.

Enumerator
LineStyleTypeSolid 

solid

LineStyleTypeDashed 

dashed

LineStyleTypePhantom 

phantom

LineStyleTypeCenterline 

centerline

LineStyleTypeDotted 

dotted

LineStyleTypeLongdash 

longdash

LineStyleTypeDotdash 

dotdash

Specifies line weight to be used for major and minor lines of the grid.

Enumerator
LineWeightTypeThin 

thin

LineWeightTypeNormal 

normal

LineWeightTypeThick 

thick

LineWeightTypeOne 

one

LineWeightTypeTwo 

two

LineWeightTypeThree 

three

LineWeightTypeFour 

four

LineWeightTypeFive 

five

LineWeightTypeSix 

six

LineWeightTypeSeven 

seven

LineWeightTypeEight 

eight

LineWeightTypeNine 

nine

Member Function Documentation

void NXOpen::Display::GridBuilder::InheritSettings ( NXOpen::Display::Grid grid)

Inherits the settings from the specified grid.

These includes settings such as Display::GridBuilder::MajorLineSpacing and Display::GridBuilder::SetMajorLineSpacing .


Created in NX6.0.0.

License requirements : None

Parameters
gridThe grid. NULL is invalid.
NXOpen::NXColor* NXOpen::Display::GridBuilder::LineColor ( )

Returns the line color
Created in NX6.0.0.



License requirements : None

double NXOpen::Display::GridBuilder::MajorLineSpacing ( )

Returns the major line spacing
Created in NX6.0.0.



License requirements : None

NXOpen::Display::GridBuilder::LineStyleType NXOpen::Display::GridBuilder::MajorLineStyle ( )

Returns the major line style
Created in NX6.0.0.



License requirements : None

NXOpen::Display::GridBuilder::LineWeightType NXOpen::Display::GridBuilder::MajorLineWeight ( )

Returns the major line weight
Created in NX6.0.0.



License requirements : None

int NXOpen::Display::GridBuilder::MinorLinesPerMajor ( )

Returns the minor lines per major
Created in NX6.0.0.



License requirements : None

NXOpen::Display::GridBuilder::LineStyleType NXOpen::Display::GridBuilder::MinorLineStyle ( )

Returns the minor line style
Created in NX6.0.0.



License requirements : None

NXOpen::Display::GridBuilder::LineWeightType NXOpen::Display::GridBuilder::MinorLineWeight ( )

Returns the minor line weight
Created in NX6.0.0.



License requirements : None

void NXOpen::Display::GridBuilder::SetLineColor ( NXOpen::NXColor lineColor)

Sets the line color
Created in NX6.0.0.



License requirements : None

Parameters
lineColorlinecolor
void NXOpen::Display::GridBuilder::SetMajorLineSpacing ( double  majorLineSpacing)

Sets the major line spacing
Created in NX6.0.0.



License requirements : None

Parameters
majorLineSpacingmajorlinespacing
void NXOpen::Display::GridBuilder::SetMajorLineStyle ( NXOpen::Display::GridBuilder::LineStyleType  majorLineStyle)

Sets the major line style
Created in NX6.0.0.



License requirements : None

Parameters
majorLineStylemajorlinestyle
void NXOpen::Display::GridBuilder::SetMajorLineWeight ( NXOpen::Display::GridBuilder::LineWeightType  majorLineWeight)

Sets the major line weight
Created in NX6.0.0.



License requirements : None

Parameters
majorLineWeightmajorlineweight
void NXOpen::Display::GridBuilder::SetMinorLinesPerMajor ( int  minorLinesPerMajor)

Sets the minor lines per major
Created in NX6.0.0.



License requirements : None

Parameters
minorLinesPerMajorminorlinespermajor
void NXOpen::Display::GridBuilder::SetMinorLineStyle ( NXOpen::Display::GridBuilder::LineStyleType  minorLineStyle)

Sets the minor line style
Created in NX6.0.0.



License requirements : None

Parameters
minorLineStyleminorlinestyle
void NXOpen::Display::GridBuilder::SetMinorLineWeight ( NXOpen::Display::GridBuilder::LineWeightType  minorLineWeight)

Sets the minor line weight
Created in NX6.0.0.



License requirements : None

Parameters
minorLineWeightminorlineweight
void NXOpen::Display::GridBuilder::SetShow ( bool  show)

Sets the show
Created in NX6.0.0.



License requirements : None

Parameters
showshow
void NXOpen::Display::GridBuilder::SetShowMajorLines ( bool  showMajorLines)

Sets the show major lines
Created in NX6.0.0.



License requirements : None

Parameters
showMajorLinesshowmajorlines
void NXOpen::Display::GridBuilder::SetShowOnTop ( bool  showOnTop)

Sets the show on top
Created in NX6.0.0.



License requirements : None

Parameters
showOnTopshowontop
void NXOpen::Display::GridBuilder::SetSnapPointsPerMinor ( int  snapPointsPerMinor)

Sets the snap points per minor
Created in NX6.0.0.



License requirements : None

Parameters
snapPointsPerMinorsnappointsperminor
void NXOpen::Display::GridBuilder::SetSnapToGrid ( bool  snapToGrid)

Sets the snap to grid
Created in NX6.0.0.



License requirements : None

Parameters
snapToGridsnaptogrid
bool NXOpen::Display::GridBuilder::Show ( )

Returns the show
Created in NX6.0.0.



License requirements : None

bool NXOpen::Display::GridBuilder::ShowMajorLines ( )

Returns the show major lines
Created in NX6.0.0.



License requirements : None

bool NXOpen::Display::GridBuilder::ShowOnTop ( )

Returns the show on top
Created in NX6.0.0.



License requirements : None

int NXOpen::Display::GridBuilder::SnapPointsPerMinor ( )

Returns the snap points per minor
Created in NX6.0.0.



License requirements : None

bool NXOpen::Display::GridBuilder::SnapToGrid ( )

Returns the snap to grid
Created in NX6.0.0.



License requirements : None


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.