Trait ringraphics::NodeT [−][src]
pub trait NodeT { fn node(&self) -> &Node; fn node_mut(&mut self) -> &mut Node; fn update_with_parent_flags(
&mut self,
parent: Option<&Node>,
flags: Flags
) -> bool; fn set_position(&mut self, pos: &Pnt3) { ... } fn position(&self) -> Pnt3 { ... } fn set_angle_axis(&mut self, angle: f32, axis: &Vec3) { ... } fn set_orientation(&mut self, q: &UnitQuat) { ... } fn orientation(&self) -> UnitQuat { ... } fn rotation(&self) -> Rot3 { ... } fn look_at(&mut self, at: &Pnt3, up: &Vec3) { ... } fn rotate(&mut self, angle: Rad<f32>, axis: &Unit<Vec3>) { ... } fn append_rotation(&mut self, rot: &UnitQuat) { ... } fn translate(&mut self, t: &Vec3) { ... } fn scale(&self) -> Vec3 { ... } fn set_scale(&mut self, s: &Vec3) { ... } fn x_axis(&self) -> Unit<Vec3> { ... } fn y_axis(&self) -> Unit<Vec3> { ... } fn z_axis(&self) -> Unit<Vec3> { ... } fn tilt(&mut self, angle: Rad<f32>) { ... } fn pan(&mut self, angle: Rad<f32>) { ... } fn roll(&mut self, angle: Rad<f32>) { ... } fn local_transformation(&self) -> Mat4 { ... } fn global_transformation(&self) -> Mat4 { ... } fn global_position(&self) -> Pnt3 { ... } fn global_orientation(&self) -> UnitQuat { ... } fn global_scale(&self) -> Vec3 { ... } fn inv_local_transformation(&self) -> Mat4 { ... } fn inv_global_transformation(&self) -> Mat4 { ... } fn update_with_parent(&mut self, parent: Option<&Node>) -> bool { ... } }
Required Methods
fn node(&self) -> &Node
fn node_mut(&mut self) -> &mut Node
fn update_with_parent_flags(
&mut self,
parent: Option<&Node>,
flags: Flags
) -> bool
&mut self,
parent: Option<&Node>,
flags: Flags
) -> bool
Provided Methods
fn set_position(&mut self, pos: &Pnt3)
fn position(&self) -> Pnt3
fn set_angle_axis(&mut self, angle: f32, axis: &Vec3)
fn set_orientation(&mut self, q: &UnitQuat)
fn orientation(&self) -> UnitQuat
fn rotation(&self) -> Rot3
fn look_at(&mut self, at: &Pnt3, up: &Vec3)
fn rotate(&mut self, angle: Rad<f32>, axis: &Unit<Vec3>)
fn append_rotation(&mut self, rot: &UnitQuat)
fn translate(&mut self, t: &Vec3)
fn scale(&self) -> Vec3
fn set_scale(&mut self, s: &Vec3)
fn x_axis(&self) -> Unit<Vec3>
fn y_axis(&self) -> Unit<Vec3>
fn z_axis(&self) -> Unit<Vec3>
fn tilt(&mut self, angle: Rad<f32>)
fn pan(&mut self, angle: Rad<f32>)
fn roll(&mut self, angle: Rad<f32>)
fn local_transformation(&self) -> Mat4
fn global_transformation(&self) -> Mat4
fn global_position(&self) -> Pnt3
fn global_orientation(&self) -> UnitQuat
fn global_scale(&self) -> Vec3
fn inv_local_transformation(&self) -> Mat4
fn inv_global_transformation(&self) -> Mat4
fn update_with_parent(&mut self, parent: Option<&Node>) -> bool
Implementors
impl NodeT for Node
impl NodeT for ArcballCamera
impl NodeT for Camera