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 function

Example

ts

Parameters

NameTypeDescription
ImpanyObject Implementation

Methods

addLines

addLines(vecLinePoints): void

Add temporary drawing line data

Example

ts

Parameters

NameType
vecLinePointsMcGePoint3dArray

Returns

void


addTriangles

addTriangles(vecTrianglesPoints): void

Add temporary drawing to fill triangle data

Example

ts

Parameters

NameType
vecTrianglesPointsMcGePoint3dArray

Returns

void


clear

clear(): void

Clear temporary drawing data

Example

ts

Returns

void


clearAll

clearAll(): void

Clear all

Example

ts

Returns

void


clearMcDbEntitysDisplay

clearMcDbEntitysDisplay(): void

Clear temporary data drawn by McDbEntities

Example

ts

Returns

void


disableDepthTestMcDbEntitysDisplay

disableDepthTestMcDbEntitysDisplay(isDisable?): void

Disable temporary rendering of McDbEntities in OpenGL DepthTest

Example

ts

Parameters

NameTypeDefault value
isDisablebooleantrue

Returns

void


freeMcDbEntitysDisplay

freeMcDbEntitysDisplay(): void

Release the temporary drawing context for McDbEntities.

Example

ts

Returns

void


readyMcDbEntitysWorldDraw

readyMcDbEntitysWorldDraw(): void

Prepare temporary drawing context for McDbEntities.

Example

ts

Returns

void


setDrawColor

setDrawColor(color): void

Set Draw color

Example

ts

Parameters

NameType
colornumber

Returns

void


setDrawOrder

setDrawOrder(iDrawOrder, iMcDbEntityDrawOrder): void

Set display order

Example

ts

Parameters

NameType
iDrawOrdernumber
iMcDbEntityDrawOrdernumber

Returns

void


worldDrawMcDbEntitys

worldDrawMcDbEntitys(ent): boolean

Generate temporary drawn data for McDbEntities

Example

ts

Parameters

NameType
entMcDbEntity

Returns

boolean