Skip to content

editor › Globals › ObjectRepresentation

Class: ObjectRepresentation

Base class for representing a single physical object in an implementation-specific format.

Hierarchy

  • ObjectRepresentation

↳ ObjectVisualization

Index

Constructors

Properties

Methods

Constructors

constructor

+ new ObjectRepresentation(physicalObject: PhysicalObject): ObjectRepresentation

Defined in src/model/ObjectRepresentation.ts:14

Parameters:

Name Type
physicalObject PhysicalObject

Returns: ObjectRepresentation

Properties

Protected Readonly physicalObject

• physicalObject: PhysicalObject

Defined in src/model/ObjectRepresentation.ts:14

Methods

getPhysicalObject

▸ getPhysicalObject(): PhysicalObject‹›

Defined in src/model/ObjectRepresentation.ts:30

Returns: PhysicalObject‹›

Associated physical object


getRepresentationFinishedPromise

▸ getRepresentationFinishedPromise(): Promise‹void›

Defined in src/model/ObjectRepresentation.ts:23

Returns: Promise‹void›


Static canRepresent

▸ canRepresent(physicalObject: PhysicalObject): boolean

Defined in src/model/ObjectRepresentation.ts:10

Parameters:

Name Type
physicalObject PhysicalObject

Returns: boolean

Whether this class can represent this physicalObject