Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConstantRemoteModel

A constant remote model designed for viewing CAE models with a stateless, scalable server.

The ConstantRemoteModel supports an efficient and scalable streaming of pre-defined CAE model configurations. The server is a stateless REST API based server that has very low resource usage on the server side and is easy to load balance. The streaming also starts immediately when a model is opened, no matter the size of the model. Similar to RemoteModel, it utilizes 3D Progressive Object Streaming to the client. The model needs to be converted into a CUG database format before it can be streamed. This is done with the included CugComposer command line utility.

The ConstantRemoteModel is used in the viewer on Ceetron Cloud.

See the example in Examples/BuildYourFirstApp/2-Viewer for how to use the ConstantRemoteModel.

Hierarchy

  • Model
    • ConstantRemoteModel

Implements

Index

Constructors

constructor

Accessors

Readonly animation

animation: Animation

The animation control for this ConstantRemoteModel

currentFrameIndex

currentFrameIndex: number

The frame to show

The given zero-based index must be between 0 and frameCount - 1.

Readonly cuttingPlaneCount

cuttingPlaneCount: number

Readonly frameCount

frameCount: number

Readonly isosurfaceCount

isosurfaceCount: number

Readonly isovolumeCount

isovolumeCount: number

Readonly modelSpec

modelSpec: ModelSpec

Returns the ModelSpec describing the result used in this model

Might return null if model is not streamed yet or the model does not have result info.

name

name: string

Name of the model.

Mainly used for debugging.

Readonly partCount

partCount: number

Returns the number of parts in this model

Readonly particleTraceGroup

particleTraceGroup: number

Readonly simulationInfo

simulationInfo: SimulationInfo

Returns the SimulationInfo describing the simulation that is the source for this model.

Might return null if model is not streamed yet or the model does not have simulation info

Methods

closeModel

  • closeModel(): void
  • Returns void

enablePreLoading

  • enablePreLoading(enable: boolean): void
  • Parameters

    • enable: boolean

    Returns void

getBoundingBox

getCurrentParticleTraceTime

  • getCurrentParticleTraceTime(): number
  • Returns number

getCuttingPlaneArray

getCuttingPlaneAt

getFrameInfoArray

  • getFrameInfoArray(): ReadonlyArray<FrameInfo>

getFrameInfoAt

getIsosurfaceArray

getIsosurfaceAt

getIsovolumeArray

  • getIsovolumeArray(): ReadonlyArray<Isovolume>

getIsovolumeAt

getPartArray

  • getPartArray(): ReadonlyArray<Part>
  • Returns ReadonlyArray<Part>

getPartAt

  • getPartAt(index: number): Part
  • Parameters

    • index: number

    Returns Part

getParticleTraceGroupArray

getParticleTraceGroupAt

getResultInfo

  • Get the information about the result with the given type and id.

    Returns null if the result was not found.

    Parameters

    Returns ResultInfo

getResultInfoArray

  • Get the array with all ResultInfos defined in this model

    Returns ReadonlyArray<ResultInfo>

isFirstParticleTraceCycle

  • isFirstParticleTraceCycle(): boolean
  • Returns boolean

openModel

rayIntersect

  • Performs picking on the model using the current frame.

    If something was hit, returns a HitItem containing information about the object that was hit. Returns null if nothing was hit.

    Parameters

    Returns HitItem

rayIntersectServerInfo

  • Performs picking on the model using the current frame, querying the server for additional info

    If something was hit, returns a HitItem containing information about the object that was hit. Returns null if nothing was hit.

    This method will query the CUG server for additional info on the selected item

    Parameters

    Returns void

setCurrentParticleTraceTime

  • setCurrentParticleTraceTime(time: number, isFirstParticleTraceCycle: boolean): void
  • Parameters

    • time: number
    • isFirstParticleTraceCycle: boolean

    Returns void

setGuidingCamera

  • setGuidingCamera(camera: Camera): void
  • Parameters

    Returns void

setMasterModelForSyncAnimation

  • Set a master model to which animation in this model will be synchronized.

    Calling this function will make this model a slave of masterModel with regards to animations. This means that animations will be controlled via the master model's animation control and that this model's animation control become invalid. To set this model back to normal operation, pass null to this function.

    Parameters

    Returns void

setOneShotDataStreamingCompleteCallback

  • Sets a one- shot callback that will be called the next time we observe that data streaming is complete

    Parameters

    Returns void

setProgressHandler

  • Sets a handler function that will be called whenever when new progress data is available

    Parameters

    Returns void

Generated using TypeDoc