Changeset 6048 in orxonox.OLD for trunk/src/lib/coord/p_node.h
- Timestamp:
- Dec 11, 2005, 3:04:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.h
r6042 r6048 43 43 // REPARENTING 44 44 PNODE_REPARENT_TO_NULLPARENT = 0x0010, //!< Reparents to the NullParent, if the Parent is Removed. 45 PNODE_REPARENT_TO_PAR ANTS_PARENT = 0x0020, //!< Reparents the Node to the parents (old) parent it the parent gets removed.45 PNODE_REPARENT_TO_PARENTS_PARENT = 0x0020, //!< Reparents the Node to the parents (old) parent it the parent gets removed. 46 46 PNODE_REPARENT_DELETE_CHILDREN = 0x0040, //!< Deletes the Children of the node when This Node is Removed. (Use with care). 47 47 PNODE_REPARENT_KEEP_POSITION = 0x0080, //!< Tries to keep the Position if the Node is reparented. … … 51 51 PNODE_PROHIBIT_CHILD_DELETE = 0x0100, //!< Prohibits the Children from being deleted if this Node gets deleted. 52 52 PNODE_PROHIBIT_DELETE_WITH_PARENT = 0x0200, //!< Prohibits the Node to be deleted if the Parent is. Child will be reparented according to the Repaenting-Rules 53 PNODE_REPARENT_CHILDREN_ON_DELETE = 0x0400, //!< Reparents the Children of the Node to 53 PNODE_REPARENT_CHILDREN_ON_DELETE = 0x0400, //!< Reparents the Children of the Node to 54 54 PNODE_REPARANT_CHILDREN_ON_REMOVE = 0x0800, //!< Reparents the Children of the Node if the Node gets Removed. 55 55 … … 132 132 void removeNode(); 133 133 134 void setParent (PNode* parent); 134 /** @param the new parent of this node */ 135 inline void setParent (PNode* parent) { parent->addChild(this); }; 135 136 void setParent (const char* parentName); 136 137 /** @returns the parent of this PNode */ … … 169 170 inline Vector getLastAbsCoor() { return this->lastAbsCoordinate; } 170 171 172 void reparent(); 171 173 172 174 private:
Note: See TracChangeset
for help on using the changeset viewer.