Skip to content
On this page

mxcad API 文档 / 3d / MdGeDocColorTool

Class: MdGeDocColorTool

3d.MdGeDocColorTool

所有类的父类, 除去MdGeTopo以及MdGeBrep

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeDocColorTool(p)

Parameters

NameType
pobject | MdGeLabel

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

AddColor

AddColor(col): MdGeLabel

Parameters

NameType
colMdGeColor

Returns

MdGeLabel


AutoNaming

AutoNaming(): boolean

Returns

boolean


BaseLabel

BaseLabel(): MdGeLabel

Returns

MdGeLabel


FindColor

FindColor(col): MdGeLabel

Parameters

NameType
colMdGeColor

Returns

MdGeLabel


GetColor

GetColor(lab): MdGeColor

Parameters

NameType
labMdGeLabel

Returns

MdGeColor


GetColorLabel

GetColorLabel(L, type): MdGeLabel

Parameters

NameType
LMdGeLabel
typeMxDocColorType

Returns

MdGeLabel


GetColors

GetColors(): MdGeLabelSequence

Returns

MdGeLabelSequence


IsColor

IsColor(lab): boolean

Parameters

NameType
labMdGeLabel

Returns

boolean


IsColorByLayer

IsColorByLayer(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsSet

IsSet(L, type): boolean

Parameters

NameType
LMdGeLabel
typeMxDocColorType

Returns

boolean


IsVisible

IsVisible(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


RemoveColor

RemoveColor(lab): void

Parameters

NameType
labMdGeLabel

Returns

void


ReverseChainsOfTreeNodes

ReverseChainsOfTreeNodes(): boolean

Returns

boolean


SetAutoNaming

SetAutoNaming(theIsAutoNaming): void

Parameters

NameType
theIsAutoNamingboolean

Returns

void


SetColor

SetColor(L, colorL, type): void

Parameters

NameType
LMdGeLabel
colorLMdGeLabel
typeMxDocColorType

Returns

void


SetColorByLayer

SetColorByLayer(shapeLabel, isColorByLayer): void

Parameters

NameType
shapeLabelMdGeLabel
isColorByLayerboolean

Returns

void


SetVisibility

SetVisibility(shapeLabel, isvisible): void

Parameters

NameType
shapeLabelMdGeLabel
isvisibleboolean

Returns

void


UnSetColor

UnSetColor(L, type): void

Parameters

NameType
LMdGeLabel
typeMxDocColorType

Returns

void


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject