Skip to content

[mxcad_2d API documentation] (../README. md)/[2d] (../modules/2d. md)/McObject TempDraw

Class: McObjectTempDraw

2d.McObjectTempDraw

McObject TempDraw is used to draw some graphics on temporary graphics without adding objects to the graphics database.

Table of contents

Constructors

Methods

Constructors

constructor

new McObjectTempDraw(imp)

constructor

Parameters

NameTypeDescription
ImpanyObject Implementation

Example

ts

Methods

addLines

addLines(vecLinePoints): void

Add temporary drawing line data

Parameters

NameType
vecLinePointsMcGePoint3dArray

Returns

void

Example

ts

addTriangles

addTriangles(vecTrianglesPoints): void

Add temporary drawing to fill triangle data

Parameters

NameType
vecTrianglesPointsMcGePoint3dArray

Returns

void

Example

ts

clear

clear(): void

Clear temporary drawing data

Returns

void

Example

ts

clearAll

clearAll(): void

Clear all

Returns

void

Example

ts

clearMcDbEntitysDisplay

clearMcDbEntitysDisplay(): void

Clear temporary data drawn by McDbEntities

Returns

void

Example

ts

disableDepthTestMcDbEntitysDisplay

disableDepthTestMcDbEntitysDisplay(isDisable?): void

Disable temporary rendering of McDbEntities in OpenGL DepthTest

Parameters

NameTypeDefault value
isDisablebooleantrue

Returns

void

Example

ts

freeMcDbEntitysDisplay

freeMcDbEntitysDisplay(): void

Release the temporary drawing context for McDbEntities.

Returns

void

Example

ts

readyMcDbEntitysWorldDraw

readyMcDbEntitysWorldDraw(): void

Prepare temporary drawing context for McDbEntities.

Returns

void

Example

ts

setDrawColor

setDrawColor(color): void

Set Draw color

Parameters

NameType
colornumber

Returns

void

Example

ts

setDrawOrder

setDrawOrder(iDrawOrder, iMcDbEntityDrawOrder): void

Set display order

Parameters

NameType
iDrawOrdernumber
iMcDbEntityDrawOrdernumber

Returns

void

Example

ts

worldDrawMcDbEntitys

worldDrawMcDbEntitys(ent): boolean

Generate temporary drawn data for McDbEntities

Parameters

NameType
entMcDbEntity

Returns

boolean

Example

ts