| 106 | } |
| 107 | |
| 108 | bool VPath::onAdd( void ) |
| 109 | { |
| 110 | if ( !Parent::onAdd() ) |
| 111 | { |
| 112 | return false; |
| 113 | } |
| 114 | |
| 115 | // Add to Scene. |
| 116 | addToScene(); |
| 117 | |
| 118 | if ( isServerObject() ) |
| 119 | { |
| 120 | // Read Fields. |
| 121 | readFields(); |
| 122 | |
| 123 | // Add to Set. |
| 124 | getServerSet()->addObject( this ); |
| 125 | } |
| 126 | |
| 127 | return true; |
| 128 | } |
| 129 | |
| 130 | void VPath::onDeleteNotify( SimObject *pObject ) |
| 131 | { |