git-svn-id: svn://db.shs.com.ru/libs@688 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -63,7 +63,7 @@ public:
|
||||
ObjectBase * parent() {return parent_;}
|
||||
void setParent(ObjectBase * o) {parent_ = o;}
|
||||
bool hasParent() const {return parent_ != nullptr;}
|
||||
bool hasChildren() const {return children_.size() != 0;}
|
||||
bool hasChildren() const {return !children_.isEmpty();}
|
||||
void setScene(Scene * v);
|
||||
|
||||
void addChild(ObjectBase * o);
|
||||
@@ -147,6 +147,8 @@ public:
|
||||
QMatrix4x4 matrix() const;
|
||||
bool isRawMatrix() {return raw_matrix;}
|
||||
QVector3D inParentSpace(const QVector3D & v) const;
|
||||
void transferTransformToChildren(bool only_scale = true);
|
||||
void cleanTree();
|
||||
|
||||
bool isAcceptLight() const {return accept_light;}
|
||||
void setAcceptLight(bool yes) {accept_light = yes;}
|
||||
@@ -182,6 +184,7 @@ public:
|
||||
Mesh * mesh() {return mesh_;}
|
||||
|
||||
void calculateBoundingBox();
|
||||
void updateTransform();
|
||||
|
||||
void setProperty(const QString & pn, const QVariant & v);
|
||||
QVariant property(const QString & pn, bool * exists = 0) const;
|
||||
@@ -195,11 +198,11 @@ public:
|
||||
protected:
|
||||
virtual void transformChanged() {}
|
||||
void addChildren(ObjectBaseList & list, ObjectBase * where);
|
||||
void buildTransform();
|
||||
void buildTransform(bool force = false);
|
||||
void initInternal();
|
||||
void setSceneTreeChanged();
|
||||
void setObjectsChanged();
|
||||
virtual void localTransform(QMatrix4x4 & m);
|
||||
void localTransform(QMatrix4x4 & m);
|
||||
QMatrix4x4 worldMatrix(QMatrix4x4 parent) const;
|
||||
|
||||
int prev_pass; // Pass
|
||||
|
||||
Reference in New Issue
Block a user