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

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

public final class CrossSectionProviderProperty
extends Object
implements IPartProperty

This class is a part property for the PATRIUS assembly. It is the geometric cross section provider of a part.

Since:
1.1
Version:
$Id: CrossSectionProviderProperty.java 17588 2017-05-10 13:31:54Z bignon $
Author:
Thomas Trapier
See Also:
CrossSectionProvider
Concurrency :
conditionally thread-safe
Concurrency comment :
the CrossSectionProvider object must be immutable. In this case, this class is immutable itself and thus, is not subject to thread safety tests.

Constructor Summary
CrossSectionProviderProperty(CrossSectionProvider geometry)
          Constructor of this property.
 
Method Summary
 double getCrossSection(Vector3D direction)
          Computes the cross section of the geometry from a direction defined by a Vector3D.
 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

CrossSectionProviderProperty

public CrossSectionProviderProperty(CrossSectionProvider geometry)
Constructor of this property.

Parameters:
geometry - The cross section providing geometry of the part.
Method Detail

getCrossSection

public double getCrossSection(Vector3D direction)
Computes the cross section of the geometry from a direction defined by a Vector3D.

Parameters:
direction - the direction vector
Returns:
the cross section

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.