SHAPER  9.12.0
Model_Tools Class Reference

A collection of methods useful for different parts of data model. More...

Static Public Member Functions

static void copyLabels (TDF_Label theSource, TDF_Label theDestination, HandlettheRelocTable)
 makes copy of label and all its sub-labels without copying the attributes; and feel the relocation table More...
 
static void copyAttrs (TDF_Label theSource, TDF_Label theDestination, HandlettheRelocTable=Handle))
 makes copy of all attributes on the given label and all sub-labels More...
 
static void copyAttrsAndKeepRefsToCoordinates (TDF_Label theSource, TDF_Label theDestination, const std::set< TCollection_AsciiString > &theCoordinateLabels, HandlettheRelocTable)
 makes copy of all attributes on the given label and all sub-labels, but keep references to the Origin, coordinate axes and coordinate planes More...
 
static void labelsOfCoordinates (std::set< TCollection_AsciiString > &theCoordinateLabels, HandlettheRelocTable)
 collect labels of coordinate planes, axes, and origin More...
 

Detailed Description

A collection of methods useful for different parts of data model.

Member Function Documentation

◆ copyLabels()

void Model_Tools::copyLabels ( TDF_Label  theSource,
TDF_Label  theDestination,
HandlettheRelocTable   
)
static

makes copy of label and all its sub-labels without copying the attributes; and feel the relocation table

◆ copyAttrs()

void Model_Tools::copyAttrs ( TDF_Label  theSource,
TDF_Label  theDestination,
HandlettheRelocTable  = Handle 
)
static

makes copy of all attributes on the given label and all sub-labels

◆ copyAttrsAndKeepRefsToCoordinates()

void Model_Tools::copyAttrsAndKeepRefsToCoordinates ( TDF_Label  theSource,
TDF_Label  theDestination,
const std::set< TCollection_AsciiString > &  theCoordinateLabels,
HandlettheRelocTable   
)
static

makes copy of all attributes on the given label and all sub-labels, but keep references to the Origin, coordinate axes and coordinate planes

◆ labelsOfCoordinates()

void Model_Tools::labelsOfCoordinates ( std::set< TCollection_AsciiString > &  theCoordinateLabels,
HandlettheRelocTable   
)
static

collect labels of coordinate planes, axes, and origin