Class: Three::ExternalObject3D
- Inherits:
-
Object3D
- Object
- EventDispatcher
- Object3D
- Three::ExternalObject3D
- Defined in:
- lib/three/objects/external_object3d.rb
Constant Summary
Constants inherited from Object3D
Object3D::DEFAULT_MATRIX_AUTO_UPDATE, Object3D::DEFAULT_MATRIX_WORLD_AUTO_UPDATE, Object3D::DEFAULT_UP
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
Attributes inherited from Object3D
#cast_shadow, #children, #id, #layers, #matrix, #matrix_auto_update, #matrix_world, #matrix_world_auto_update, #matrix_world_needs_update, #name, #parent, #position, #quaternion, #receive_shadow, #rotation, #scale, #type, #up, #user_data, #uuid, #visible
Instance Method Summary collapse
- #add ⇒ Object
- #clear ⇒ Object
-
#initialize(handle, type: "ExternalObject3D") ⇒ ExternalObject3D
constructor
A new instance of ExternalObject3D.
- #remove ⇒ Object
Methods inherited from Object3D
allocate_id, #dirty_dependency_changed, #get_object_by_id, #get_object_by_name, #get_object_by_property, #get_objects_by_property, #get_world_direction, #get_world_position, #get_world_quaternion, #get_world_scale, #mark_descendant_dirty!, #mark_dirty!, #remove_from_parent, #to_h, #to_json, #traverse, #traverse_ancestors, #traverse_visible, #update_matrix, #update_matrix_world, #update_world_matrix
Methods included from Dirty
#add_dirty_dependent, #dirty?, #dirty_dependents, #dirty_field?, #dirty_fields, #mark_clean!, #mark_dirty!, #remove_dirty_dependent
Methods inherited from EventDispatcher
#add_event_listener, #dispatch_event, #has_event_listener?, #remove_event_listener
Constructor Details
#initialize(handle, type: "ExternalObject3D") ⇒ ExternalObject3D
Returns a new instance of ExternalObject3D.
9 10 11 12 13 14 |
# File 'lib/three/objects/external_object3d.rb', line 9 def initialize(handle, type: "ExternalObject3D") super() @handle = handle @type = type mark_clean! end |
Instance Attribute Details
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
7 8 9 |
# File 'lib/three/objects/external_object3d.rb', line 7 def handle @handle end |
Instance Method Details
#add ⇒ Object
16 17 18 |
# File 'lib/three/objects/external_object3d.rb', line 16 def add(*) raise NotImplementedError, "ExternalObject3D does not support Ruby child mutation yet" end |
#clear ⇒ Object
24 25 26 |
# File 'lib/three/objects/external_object3d.rb', line 24 def clear raise NotImplementedError, "ExternalObject3D does not support Ruby child mutation yet" end |
#remove ⇒ Object
20 21 22 |
# File 'lib/three/objects/external_object3d.rb', line 20 def remove(*) raise NotImplementedError, "ExternalObject3D does not support Ruby child mutation yet" end |