Class: TuioObjectParameter

Inherits:
TuioParameter show all
Defined in:
lib/tuio-ruby/tuio_object_parameter.rb

Overview

/tuio/2Dobj set s i x y a X Y A m r

Instance Attribute Summary collapse

Attributes inherited from TuioParameter

#motion_accel, #session_id, #x_pos, #x_speed, #y_pos, #y_speed

Instance Method Summary collapse

Methods inherited from TuioParameter

new_from_initial_params

Constructor Details

#initialize(session_id, fiducial_id, x_pos, y_pos, angle, x_speed, y_speed, rotation_vector, motion_accel, rotation_accel) ⇒ TuioObjectParameter

Returns a new instance of TuioObjectParameter.



8
9
10
11
12
13
14
15
# File 'lib/tuio-ruby/tuio_object_parameter.rb', line 8

def initialize( session_id, fiducial_id, x_pos, y_pos, angle, x_speed, y_speed, rotation_vector, motion_accel, rotation_accel )
  super( session_id, x_pos, y_pos, x_speed, y_speed, motion_accel )
  
  @fiducial_id = fiducial_id
  @angle = angle
  @rotation_vector = rotation_vector
  @rotation_accel = rotation_accel
end

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle.



6
7
8
# File 'lib/tuio-ruby/tuio_object_parameter.rb', line 6

def angle
  @angle
end

#fiducial_idObject (readonly)

Returns the value of attribute fiducial_id.



6
7
8
# File 'lib/tuio-ruby/tuio_object_parameter.rb', line 6

def fiducial_id
  @fiducial_id
end

#rotation_accelObject (readonly)

Returns the value of attribute rotation_accel.



6
7
8
# File 'lib/tuio-ruby/tuio_object_parameter.rb', line 6

def rotation_accel
  @rotation_accel
end

#rotation_vectorObject (readonly)

Returns the value of attribute rotation_vector.



6
7
8
# File 'lib/tuio-ruby/tuio_object_parameter.rb', line 6

def rotation_vector
  @rotation_vector
end