40 nassertv(!pos.is_nan());
42 _flags |= F_start_pos;
53 nassertv(!pos.is_nan());
66 nassertv(!hpr.is_nan());
68 _flags = (_flags & ~(F_slerp_setup | F_start_quat)) | F_start_hpr;
82 nassertv(!hpr.is_nan());
84 _flags = (_flags & ~F_end_quat) | F_end_hpr;
99 nassertv(!quat.is_nan());
100 _end_hpr = quat.get_hpr();
101 _flags = (_flags & ~F_end_quat) | F_end_hpr;
112 nassertv(!quat.is_nan());
114 _flags = (_flags & ~(F_slerp_setup | F_start_hpr)) | F_start_quat;
133 nassertv(!hpr.is_nan());
134 _end_quat.set_hpr(hpr);
135 _flags = (_flags & ~(F_slerp_setup | F_end_hpr)) | F_end_quat;
149 nassertv(!quat.is_nan());
151 _flags = (_flags & ~(F_slerp_setup | F_end_hpr)) | F_end_quat;
162 nassertv(!scale.is_nan());
163 _start_scale = scale;
164 _flags |= F_start_scale;
175 nassertv(!cnan(scale));
186 nassertv(!scale.is_nan());
188 _flags |= F_end_scale;
198 nassertv(!cnan(scale));
210 nassertv(!shear.is_nan());
211 _start_shear = shear;
212 _flags |= F_start_shear;
222 nassertv(!shear.is_nan());
224 _flags |= F_end_shear;
235 nassertv(!color.is_nan());
236 _start_color = color;
237 _flags |= F_start_color;
247 nassertv(!color.is_nan());
249 _flags |= F_end_color;
260 nassertv(!color_scale.is_nan());
261 _start_color_scale = color_scale;
262 _flags |= F_start_color_scale;
273 nassertv(!color_scale.is_nan());
274 _end_color_scale = color_scale;
275 _flags |= F_end_color_scale;
285 _texture_stage = stage;
296 nassertv(!tex_offset.is_nan());
297 _start_tex_offset = tex_offset;
298 _flags |= F_start_tex_offset;
309 nassertv(!tex_offset.is_nan());
310 _end_tex_offset = tex_offset;
311 _flags |= F_end_tex_offset;
322 nassertv(!cnan(tex_rotate));
323 _start_tex_rotate = tex_rotate;
324 _flags |= F_start_tex_rotate;
335 nassertv(!cnan(tex_rotate));
336 _end_tex_rotate = tex_rotate;
337 _flags |= F_end_tex_rotate;
348 nassertv(!tex_scale.is_nan());
349 _start_tex_scale = tex_scale;
350 _flags |= F_start_tex_scale;
361 nassertv(!tex_scale.is_nan());
362 _end_tex_scale = tex_scale;
363 _flags |= F_end_tex_scale;
375 _override =
override;
void set_start_scale(const LVecBase3 &scale)
Indicates the initial scale of the lerped node.
void set_start_shear(const LVecBase3 &shear)
Indicates the initial shear of the lerped node.
void set_start_hpr(const LVecBase3 &hpr)
Indicates the initial rotation of the lerped node.
void set_end_shear(const LVecBase3 &shear)
Indicates that the shear of the node should be lerped, and specifies the final shear of the node.
void set_end_scale(const LVecBase3 &scale)
Indicates that the scale of the node should be lerped, and specifies the final scale of the node.
void set_start_color_scale(const LVecBase4 &color_scale)
Indicates the initial color scale of the lerped node.
void set_end_hpr(const LVecBase3 &hpr)
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the nod...
void set_end_color(const LVecBase4 &color)
Indicates that the color of the node should be lerped, and specifies the final color of the node.
void set_start_quat(const LQuaternion &quat)
Indicates the initial rotation of the lerped node.
int get_override() const
Returns the override value that will be associated with any state changes applied by the lerp.
void set_texture_stage(TextureStage *stage)
Indicates the texture stage that is adjusted by tex_offset, tex_rotate, and/or tex_scale.
void set_start_color(const LVecBase4 &color)
Indicates the initial color of the lerped node.
void set_end_tex_scale(const LVecBase2 &tex_scale)
Indicates that the UV scale of the node should be lerped, and specifies the final UV scale of the nod...
const NodePath & get_node() const
Returns the node being lerped.
void set_start_tex_offset(const LVecBase2 &tex_offset)
Indicates the initial UV offset of the lerped node.
void set_end_pos(const LVecBase3 &pos)
Indicates that the position of the node should be lerped, and specifies the final position of the nod...
void set_override(int override)
Changes the override value that will be associated with any state changes applied by the lerp.
void set_start_tex_scale(const LVecBase2 &tex_scale)
Indicates the initial UV scale of the lerped node.
void set_start_tex_rotate(PN_stdfloat tex_rotate)
Indicates the initial UV rotate of the lerped node.
const NodePath & get_other() const
Returns the "other" node, which the lerped node is being moved relative to.
void set_start_pos(const LVecBase3 &pos)
Indicates the initial position of the lerped node.
void set_end_color_scale(const LVecBase4 &color_scale)
Indicates that the color scale of the node should be lerped, and specifies the final color scale of t...
void set_end_tex_rotate(PN_stdfloat tex_rotate)
Indicates that the UV rotate of the node should be lerped, and specifies the final UV rotate of the n...
void set_end_quat(const LVecBase3 &hpr)
Indicates that the rotation of the node should be lerped, and specifies the final rotation of the nod...
void set_end_tex_offset(const LVecBase2 &tex_offset)
Indicates that the UV offset of the node should be lerped, and specifies the final UV offset of the n...
Defines the properties of a named stage of the multitexture pipeline.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...