fr.cnes.sirius.patrius.assembly.properties
Class GeometricProperty

java.lang.Object
  extended by fr.cnes.sirius.patrius.assembly.properties.GeometricProperty
All Implemented Interfaces:
IPartProperty

public final class GeometricProperty
extends Object
implements IPartProperty

This class defines the Geometric Property to be used with assemblies.

Since:
1.1
Version:
$Id: GeometricProperty.java 17588 2017-05-10 13:31:54Z bignon $
Author:
houdroger
Use sample :
final SolidShape cone = new ObliqueCircularCone(Vector3D.ZERO, translation, translation.orthogonal(), MathUtils.DEG_TO_RAD * 30, MathUtils.DEG_TO_RAD * 20, 1.5);
final IPartProperty shapeProp2 = new GeometricProperty(cone);
builder.addProperty(shapeProp2, part2);
Concurrency :
conditionally thread-safe
Concurrency comment :
the SolidShape object must be immutable. In this case, this class is immutable itself and thus, is not subject to thread safety tests.

Constructor Summary
GeometricProperty(SolidShape solidShape)
          Constructor
 
Method Summary
 SolidShape getShape()
           
 PropertyType getType()
          Get the type of the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometricProperty

public GeometricProperty(SolidShape solidShape)
Constructor

Parameters:
solidShape - shape of assembly part
Method Detail

getShape

public SolidShape getShape()
Returns:
the shape

getType

public PropertyType getType()
Description copied from interface: IPartProperty
Get the type of the property.

Specified by:
getType in interface IPartProperty
Returns:
the type of the property (see PropertyType enumeration)


Copyright © 2017 CNES. All Rights Reserved.