Click or drag to resize

ElementModel Class

The Element class represents viewable objects in the scene. All viewable objects, such as ContainerModel, FlatContainerModel and PlaceholderModel inherit from this base object. The element is also the most commonly used type of object in a scene: it is used for machines, tables etc.
Inheritance Hierarchy

Namespace:  Livit.Learn.Model
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class ElementModel : DraggableModel

The ElementModel type exposes the following members.

Constructors
  NameDescription
Public methodElementModel
Initializes a new instance of the ElementModel class
Top
Properties
  NameDescription
Public propertyAccessibilityAnimationCategory
Public propertyAccessibilityTooltip
Sets the Accessibility tooltip displayed and narrated when in Accessibility Mode.
Public propertyAllowHandRotation
Daydream specific parameter. Determines whether to allow hand rotation based on controller rotation or not. Defaults to true.
Public propertyAllowPositionMarker (Inherited from FocusableModel.)
Public propertyAllowTrashing
Allows the element to be trashed.
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyCode exampleBasedOn
References another element from which the current element's parameters will be based.
Public propertyClickCount
Counts the number of times an element has been clicked on.
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCode exampleCustomCameras
CustomCameras for this Foucsable
(Inherited from FocusableModel.)
Public propertyCustomCamerasSerialized (Inherited from FocusableModel.)
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyCode exampleDecals
Applies a decal on the parent element.
Public propertyDecalsSerialized
Public propertyDefaultExtendedTooltip
Sets the extended tooltip displayed when the element is hovered over.
Public propertyDefaultTooltip
Sets the tooltip displayed when the element is hovered over. If an image URL is added the image will be displayed in the tooltip.
Public propertyDescription
Displays a description of the object to the user.
(Inherited from TriggableModel.)
Public propertyDragLineColor (Inherited from DraggableModel.)
Public propertyDragLineColorSerialized
Defines the color of the drag line Default value : White
(Inherited from DraggableModel.)
Public propertyDragLineOn
To show drag line. If TRUE, drag line is displayed
(Inherited from DraggableModel.)
Public propertyDragLineThickness
The thickness of the drag line
(Inherited from DraggableModel.)
Public propertyDragModeThreshold
Minimal distance the User has to move the mouse to any direction while holding the mouse button in order to activate Dragging mode
(Inherited from DraggableModel.)
Public propertyDragSpeed (Inherited from DraggableModel.)
Public propertyDragSpeedSerialized (Inherited from DraggableModel.)
Public propertyCode exampleElements
Establishes a collection of child elements.
Public propertyElementsSerialized
Public propertyEmphasisDuration
Duration of an element's emphasizing in the scene.
(Inherited from ViewableModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyFields (Inherited from ScopeableModel.)
Public propertyFieldsSerialized (Inherited from ScopeableModel.)
Public propertyGameObjectId
(Optional) Defines what the GameObject should be named.
(Inherited from FocusableModel.)
Public propertyGUITooltipId
Specifies the GUI tooltip template used for this element.
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyInheritTemperature
Inherits the parent's Temperature.
Public propertyIsAlwaysNavigable
Ensures that Element auto-discovered for accessibility navigation and circumvent non-critical checks blocking it from being navigable otherwise.
Public propertyIsClickable
Allows the object to be clicked if the parent element is focused.
Public propertyIsDraggable
Set on the object that enables/disables if the object can be dragged or not
(Inherited from DraggableModel.)
Public propertyIsDropAllowed
Allows the element to be dropped by the user.
Public propertyIsFocusable
Allows an element to be focused on.
(Inherited from FocusableModel.)
Public propertyIsFreeLook
Allows the object to be viewed by the user from any angle.
(Inherited from FocusableModel.)
Public propertyIsHighlightable
Highlights the object when the mouse hovers over it.
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyIsPickUpAllowed
Allows the element to be picked up by the user.
Public propertyIsScope (Inherited from ScopeableModel.)
Public propertyIsVisible (Inherited from ViewableModel.)
Public propertyKeepExamineOnInteraction
Allows an element to stay focused even after an interaction.
(Inherited from FocusableModel.)
Public propertyMass
(In development) Sets the element's mass.
Public propertyMessageHandlers (Inherited from ScopeableModel.)
Public propertyMessageHandlersSerialized (Inherited from ScopeableModel.)
Public propertyCode exampleParameters
Defines a collection of parameters for the element.
Public propertyParametersSerialized
Public propertyPosition
Positions the element on its parent element's surface.
Public propertyPositionSerialized
Public propertyRotation
Sets the rotation of the element on the parent surface.
Public propertyRotationSerialized
Public propertyCode exampleScreens
Specifies the GUI used to interact with this element.
Public propertyScreensSerialized
Public propertySourceId
Specifies the ID of the GameObject asset to be loaded.
Public propertyCode exampleStateGroups
Defines the possible StateGroup for this element.
(Inherited from StateableModel.)
Public propertyStateGroupsSerialized (Inherited from StateableModel.)
Public propertySurfaceOffset
The element's distance from the surface.
Public propertyTags (Inherited from ViewableModel.)
Public propertyTargetHighlight
Highlights all placeholders that accept dragged object
(Inherited from DraggableModel.)
Public propertyTemperature
(In development) The element's temperature.
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyCode exampleTintColor
Sets the tint of the element.
Public propertyTintColorSerialized
Public propertyTitle
Defines a title for the object.
(Inherited from TriggableModel.)
Public propertyTriggers (Inherited from TriggableModel.)
Public propertyTriggersSerialized
Lists the available Triggers for this object.
(Inherited from TriggableModel.)
Public propertyVisit
Counts the number of visits to the a scene.
(Inherited from FocusableModel.)
Public propertyWasShown
(Internal use only) Returns true if the object has been shown in the simulation.
(Inherited from ViewableModel.)
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodShouldSerializeStateGroups (Inherited from StateableModel.)
Public methodShouldSerializeTriggers (Inherited from TriggableModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
Examples
XML
<Element Id="Centrifuge" SourceId="Centrifuge" Position="0.2,0.3" Rotation="270" IsClickable="true" IsFocusable="true" Tooltip="Centrifuge" ExtendedTooltip="Centrifuge machine that separates liquids of different densities.">
    <Elements>...</Elements>
</Element>
See Also
Inheritance Hierarchy
SystemObject
  Livit.Learn.ModelBaseModel
    Livit.Learn.ModelTriggableModel
      Livit.Learn.ModelScopeableModel
        Livit.Learn.ModelViewableModel
          Livit.Learn.ModelStateableModel
            Livit.Learn.ModelFocusableModel
              Livit.Learn.ModelDraggableModel
                Livit.Learn.ModelElementModel
                  Livit.Learn.ModelAssistantModel
                  Livit.Learn.ModelConfigurationModel
                  Livit.Learn.ModelContainerModel
                  Livit.Learn.ModelFlatContainerModel
                  Livit.Learn.ModelPlaceholderModel
                  Livit.Learn.ModelSceneModel
                  Livit.Learn.ModelSlotModel
                  Livit.Learn.ModelSurfaceModel