Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AExtrudedShapeModel

Hierarchy

  • CubicBezierModel
    • AExtrudedShapeModel

Index

Constructors

constructor

Properties

Protected _eventCallbackDicts

_eventCallbackDicts: {} = {}

Type declaration

Protected _material

_material: AMaterial

Protected _parent

_parent: null | AObjectNode

Protected _subscriptions

_subscriptions: {} = {}

Type declaration

_transform

_transform: NodeTransform3D

children

children: AObjectNode[]

color

color: Color

extrudeSettings

extrudeSettings: {}

Type declaration

  • [name: string]: any

fillAlpha

fillAlpha: number

geometry

geometry: GeometrySet

inEditMode

inEditMode: boolean

nSubdivisions

nSubdivisions: number

name

name: string

selectable

selectable: boolean

state

state: {} = {}

Type declaration

  • [name: string]: any

strokeColor

strokeColor: Color

strokeWidth

strokeWidth: number

uid

uid: string

Static AObjectStateKeys

AObjectStateKeys: string[] = []

Static AObjectVersion

AObjectVersion: number = 1

Static Events

Events: typeof AModelEvents = ...

Static NodeEvents

NodeEvents: typeof SceneNodeEvents = ...

Static SupportsUploadedModels

SupportsUploadedModels: boolean = false

Accessors

ClassConstructor

  • get ClassConstructor(): typeof AObject

extrudeDepth

  • get extrudeDepth(): number
  • set extrudeDepth(v: number): void

material

parent

serializationLabel

  • get serializationLabel(): any

stateSnapshop

  • get stateSnapshop(): {}

transform

verts

Methods

_attachToNewParent

_childrenListToUIDs

  • _childrenListToUIDs(childrenList: AObjectNode[]): string[]

_disposeMaterial

  • _disposeMaterial(): void

_getEventCallbackDict

_getListeners

  • _getListeners(): {}

_removeChild

  • _removeChild(child: AObjectNode, triggerNewParentEvent?: boolean): void

_removeFromParent

  • _removeFromParent(triggerNewParentEvent?: boolean): void

_uidsToChildrenList

activateSubscription

  • activateSubscription(name: string): void

addChild

addColorListener

  • addColorListener(callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch

addEnterSelectionListener

  • addEnterSelectionListener(callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addEventListener

  • addEventListener(eventName: string, callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addEventListeners

  • addEventListeners(eventName: string, callbacks: ((...args: any[]) => void)[], handle?: string): AEventCallbackSwitch

addExitSelectionListener

addGeometryListener

  • addGeometryListener(callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch

addMaterialChangeListener

  • addMaterialChangeListener(callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addMaterialUpdateListener

  • addMaterialUpdateListener(callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch

addOneTimeEventListener

  • addOneTimeEventListener(eventName: string, callback: (...args: any[]) => void, handle?: string): AEventCallbackSwitch
  • Parameters

    • eventName: string
    • callback: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • Optional handle: string

    Returns AEventCallbackSwitch

addStateKeyListener

  • addStateKeyListener(state_key: string, callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch
  • Sets a callback function to be called whenever the state specified in state_key changes. The return value callbackSwitch is a callback switch. You can activate the listener with callbackSwitch.activate() and deactive with callbackSwitch.deactivate(). Example Usage:

    var callbackswitch = model.addStateKeyListener('name',()=>{
    n_name_changes = n_name_changes+1;
    })

    Parameters

    • state_key: string

      the name of the state to listen to

    • callback: (self: AObject) => void

      the callback to be executed when state changes

    • Optional handle: string

      the handle / unique identifier for

    • synchronous: boolean = true

      whether callbacks should happen synchronously or allow for batching

    Returns AStateCallbackSwitch

addStateListener

  • addStateListener(callback: (self: AObject) => void, handle?: string, synchronous?: boolean): AStateCallbackSwitch

addTransformListener

  • addTransformListener(callback: (self: AObject) => void, handle?: string, synchronous?: boolean): ACallbackSwitch

clearSubscriptions

  • clearSubscriptions(): void

deactivateSubscription

  • deactivateSubscription(name: string): void

dispose

  • dispose(): void

filterChildren

filterDescendants

getBounds

getCameraNodes

  • getCameraNodes(): void

getChildWithID

getDescendantList

getExtrudeSetting

  • getExtrudeSetting(name: string): any

getModelGUIControlSpec

  • getModelGUIControlSpec(): { ModelName: { onChange: (v: string) => void; value: string }; extrudeDepth: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }; fillAlpha: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }; inEditMode: { onChange: (v: boolean) => void; value: boolean }; nSubdivisions: { max: number; min: number; onChange: (v: number) => void; step: number; value: number } }
  • Returns { ModelName: { onChange: (v: string) => void; value: string }; extrudeDepth: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }; fillAlpha: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }; inEditMode: { onChange: (v: boolean) => void; value: boolean }; nSubdivisions: { max: number; min: number; onChange: (v: number) => void; step: number; value: number } }

    • ModelName: { onChange: (v: string) => void; value: string }
      • onChange: (v: string) => void
          • (v: string): void
          • Parameters

            • v: string

            Returns void

      • value: string
    • extrudeDepth: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }
      • max: number
      • min: number
      • onChange: (v: number) => void
          • (v: number): void
          • Parameters

            • v: number

            Returns void

      • step: number
      • value: number
    • fillAlpha: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }
      • max: number
      • min: number
      • onChange: (v: number) => void
          • (v: number): void
          • Parameters

            • v: number

            Returns void

      • step: number
      • value: number
    • inEditMode: { onChange: (v: boolean) => void; value: boolean }
      • onChange: (v: boolean) => void
          • (v: boolean): void
          • Parameters

            • v: boolean

            Returns void

      • value: boolean
    • nSubdivisions: { max: number; min: number; onChange: (v: number) => void; step: number; value: number }
      • max: number
      • min: number
      • onChange: (v: number) => void
          • (v: number): void
          • Parameters

            • v: number

            Returns void

      • step: number
      • value: number

getSceneModel

getWorldPosition

  • getWorldPosition(): Vec3

getWorldTransform

mapOverChildren

  • mapOverChildren(fn: (child: AObjectNode) => void | any[]): (void | any[])[]

mapOverDescendants

  • mapOverDescendants(fn: (child: AObjectNode) => void | any[]): (void | any[])[]

onMaterialUpdate

  • onMaterialUpdate(...args: any[]): void

release

  • release(...args: any[]): void

releaseChildren

  • releaseChildren(...args: any[]): (void | any[])[]

removeChild

removeChildren

  • removeChildren(): (void | any[])[]

removeEventListener

  • removeEventListener(eventName: string, handle: string): void

removeListener

  • removeListener(handle: string): void

reorderChildren

  • reorderChildren(uidList: string[]): void

reparent

setExtrudeSetting

  • setExtrudeSetting(name: string, value: any): void

setMaterial

  • setMaterial(material: string | AMaterial): void

setMaterialUpdateSubscriptions

  • setMaterialUpdateSubscriptions(): void

setTransform

signalEvent

  • signalEvent(eventName: string, ...args: any[]): void

subscribe

toJSON

  • toJSON(): {}

unsubscribe

  • unsubscribe(name: string, errorIfAbsent?: boolean): void

Static CreateWithState

  • CreateWithState(state: {}): AObject

Static SerializationLabel

  • SerializationLabel(): any

Static fromJSON

Generated using TypeDoc