SceneObjectPtr Revolution::Builder::build( ) const { if (isValid()) return SceneObjectPtr (new Revolution(*Profile, Slices ? *Slices : DEFAULT_SLICES)); return SceneObjectPtr(); }
SceneObjectPtr AxisRotated::Builder::build( ) const { if (isValid()) return SceneObjectPtr (new AxisRotated(Axis ? *Axis : DEFAULT_AXIS, Angle ? *Angle : DEFAULT_ANGLE, *Geometry)); return SceneObjectPtr(); }
SceneObjectPtr Oriented::Builder::build( ) const { if (isValid()) return SceneObjectPtr (new Oriented(Primary ? *Primary : DEFAULT_PRIMARY, Secondary ? *Secondary : DEFAULT_SECONDARY, *Geometry)); return SceneObjectPtr(); }
SceneObjectPtr EulerRotated::Builder::build( ) const { if (isValid()) return SceneObjectPtr (new EulerRotated(Azimuth ? *Azimuth : DEFAULT_AZIMUTH, Elevation ? *Elevation : DEFAULT_ELEVATION, Roll ? *Roll : DEFAULT_ROLL, *Geometry)); return SceneObjectPtr(); }
SceneObjectPtr Paraboloid::Builder::build( ) const { if (isValid()) return SceneObjectPtr (new Paraboloid(Radius ? *Radius : DEFAULT_RADIUS, Height ? *Height : DEFAULT_HEIGHT, Shape ? *Shape : DEFAULT_SHAPE, Solid ? *Solid : DEFAULT_SOLID, Slices ? *Slices : DEFAULT_SLICES, Stacks ? *Stacks : DEFAULT_STACKS)); return SceneObjectPtr(); }
SceneObjectPtr PointSet2D::copy(DeepCopier& copier) const { PointSet2D * ptr = new PointSet2D(*this); copier.copy_attribute(ptr->getPointList()); return SceneObjectPtr(ptr); }
SceneObjectPtr Group::copy(DeepCopier& copier) const { Group * ptr = new Group(*this); copier.copy_recursive_object_attribute(ptr->getGeometryList()); copier.copy_object_attribute(ptr->getSkeleton()); return SceneObjectPtr(ptr); }
event::ResultType MultiObjectGrabStrategy:: objectDeintersected(SceneObjectPtr obj) { if ( mGrabbing ) { return event::DONE; } mCurIsectObject = SceneObjectPtr(); return event::CONTINUE; }
SceneObjectPtr Revolution::copy(DeepCopier& copier) const { Revolution * ptr = new Revolution(*this); copier.copy_object_attribute(ptr->getProfile()); return SceneObjectPtr(ptr); }
SceneObjectPtr AxisRotated::copy(DeepCopier& copier) const { AxisRotated * ptr = new AxisRotated(*this); copier.copy_object_attribute(ptr->getGeometry()); return SceneObjectPtr(ptr); }
SceneObjectPtr QuadSet::copy(DeepCopier& copier) const{ return SceneObjectPtr(mesh_copy<QuadSet>(*this,copier)); }
SceneObjectPtr PointSet::Builder::build( ) const { if (isValid()) return SceneObjectPtr(new PointSet(*PointList,ColorList?*ColorList:Color4ArrayPtr(),Width?*Width:DEFAULT_WIDTH)); // Returns null as self is not valid. return SceneObjectPtr(); }
SceneObjectPtr PointSet2D::Builder::build( ) const { if (isValid()) return SceneObjectPtr(new PointSet2D(*PointList,Width?*Width:PointSet::DEFAULT_WIDTH)); // Returns null as self is not valid. return SceneObjectPtr(); }
SceneObjectPtr Paraboloid::copy(DeepCopier& copier) const { return SceneObjectPtr(new Paraboloid(*this)); }
SceneObjectPtr Group::Builder::build( ) const { if (isValid()) return SceneObjectPtr(new Group(*GeometryList, Skeleton ? *Skeleton : DEFAULT_SKELETON)); return SceneObjectPtr(); }