32 #include "scene/main/node.h" 33 #include "scene/main/scene_main_loop.h" 46 virtual void create()=0;
47 virtual void transform()=0;
48 virtual void clear()=0;
49 virtual void redraw()=0;
50 virtual void free()=0;
93 bool ignore_notification;
94 bool notify_local_transform;
108 void _update_gizmo();
110 void _notify_dirty();
111 void _propagate_transform_changed(
Spatial *p_origin);
114 void _set_rotation_deg(
const Vector3& p_euler_deg);
115 Vector3 _get_rotation_deg()
const;
117 void _propagate_visibility_changed();
122 _FORCE_INLINE_
void set_ignore_transform_notification(
bool p_ignore) { data.ignore_notification=p_ignore; }
124 _FORCE_INLINE_
void _update_local_transform()
const;
126 void _notification(
int p_what);
127 static void _bind_methods();
129 void _set_visible_(
bool p_visible);
130 bool _is_visible_()
const;
135 NOTIFICATION_TRANSFORM_CHANGED=SceneTree::NOTIFICATION_TRANSFORM_CHANGED,
136 NOTIFICATION_ENTER_WORLD=41,
137 NOTIFICATION_EXIT_WORLD=42,
138 NOTIFICATION_VISIBILITY_CHANGED=43,
139 NOTIFICATION_LOCAL_TRANSFORM_CHANGED=44,
142 Spatial *get_parent_spatial()
const;
147 void set_translation(
const Vector3& p_translation);
148 void set_rotation(
const Vector3& p_euler_rad);
149 void set_rotation_deg(
const Vector3& p_euler_deg);
150 void set_scale(
const Vector3& p_scale);
152 Vector3 get_translation()
const;
154 Vector3 get_rotation_deg()
const;
157 void set_transform(
const Transform& p_transform);
158 void set_global_transform(
const Transform& p_transform);
163 void set_as_toplevel(
bool p_enabled);
164 bool is_set_as_toplevel()
const;
166 void set_disable_gizmo(
bool p_enabled);
171 _FORCE_INLINE_
bool is_inside_world()
const {
return data.inside_world; }
173 Transform get_relative_transform(
const Node *p_parent)
const;
175 void rotate(
const Vector3& p_normal,
float p_radians);
176 void rotate_x(
float p_radians);
177 void rotate_y(
float p_radians);
178 void rotate_z(
float p_radians);
179 void translate(
const Vector3& p_offset);
180 void scale(
const Vector3& p_ratio);
181 void global_rotate(
const Vector3& p_normal,
float p_radians);
182 void global_translate(
const Vector3& p_offset);
184 void look_at(
const Vector3& p_target,
const Vector3& p_up_normal);
187 void set_notify_local_transform(
bool p_enable);
188 bool is_local_transform_notification_enabled()
const;
190 void orthonormalize();
195 bool is_visible()
const;
196 bool is_hidden()
const;
197 void set_hidden(
bool p_hidden);
200 void set_import_transform(
const Transform& p_transform) ;
Definition: reference.h:78
Definition: viewport.h:75
Definition: reference.h:40