Пример #1
0
SceneObjectPtr Revolution::Builder::build( ) const {
  if (isValid()) 
    return SceneObjectPtr
      (new Revolution(*Profile,
		      Slices ? *Slices : DEFAULT_SLICES));
  return SceneObjectPtr();
}
Пример #2
0
SceneObjectPtr AxisRotated::Builder::build( ) const {
  if (isValid())
    return SceneObjectPtr
      (new AxisRotated(Axis ? *Axis : DEFAULT_AXIS,
                       Angle ? *Angle : DEFAULT_ANGLE,
                       *Geometry));
  return SceneObjectPtr();
}
Пример #3
0
SceneObjectPtr Oriented::Builder::build( ) const {
  if (isValid())
    return SceneObjectPtr
      (new Oriented(Primary ? *Primary : DEFAULT_PRIMARY,
                    Secondary ? *Secondary : DEFAULT_SECONDARY,
                    *Geometry));
  return SceneObjectPtr();
}
Пример #4
0
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();
}
Пример #5
0
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();
}
Пример #6
0
SceneObjectPtr 
PointSet2D::copy(DeepCopier& copier) const 
{
  PointSet2D * ptr = new PointSet2D(*this);
  copier.copy_attribute(ptr->getPointList());
  return SceneObjectPtr(ptr);
}
Пример #7
0
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;
}
Пример #9
0
SceneObjectPtr Revolution::copy(DeepCopier& copier) const {
  Revolution * ptr = new Revolution(*this);
  copier.copy_object_attribute(ptr->getProfile());
  return SceneObjectPtr(ptr);
}
Пример #10
0
SceneObjectPtr AxisRotated::copy(DeepCopier& copier) const {
  AxisRotated * ptr = new AxisRotated(*this);
  copier.copy_object_attribute(ptr->getGeometry());
  return SceneObjectPtr(ptr);
}
Пример #11
0
SceneObjectPtr 
QuadSet::copy(DeepCopier& copier) const{
  return SceneObjectPtr(mesh_copy<QuadSet>(*this,copier));
}
Пример #12
0
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();
}
Пример #13
0
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();
}
Пример #14
0
SceneObjectPtr Paraboloid::copy(DeepCopier& copier) const {
  return SceneObjectPtr(new Paraboloid(*this));
}
Пример #15
0
SceneObjectPtr Group::Builder::build( ) const {
  if (isValid())
    return SceneObjectPtr(new Group(*GeometryList,
				 Skeleton ? *Skeleton : DEFAULT_SKELETON));
  return SceneObjectPtr();
}