Package wt.part
Class PartUsesOccurrence
java.lang.Object
wt.part._PartUsesOccurrence
wt.part.PartUsesOccurrence
- All Implemented Interfaces:
Externalizable,Serializable,wt.build._BuildableObject,wt.build._BuildableOccurrence,wt.build.BuildableObject,wt.build.BuildableOccurrence,wt.esi._Releasable,Releasable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,NetFactor,ObjectMappable,Persistable,wt.federation._FederatedLinkHolder,wt.federation._RemotelyLinkable,wt.federation.FederatedLinkHolder,wt.federation.RemotelyLinkable,_Occurrence,_UsesOccurrence,Occurrence,UsesOccurrence,wt.option._ChoiceMappable,wt.option._Expressionable,wt.option._ExpressionAssignable,wt.option._IndependentExpressionAssignable,ChoiceMappable,Expressionable,ExpressionAssignable,wt.option.IndependentExpressionAssignable,wt.ufid._Federatable,wt.ufid.Federatable
@GenAsPersistable(interfaces={UsesOccurrence.class,wt.build.BuildableOccurrence.class,Releasable.class,ChoiceMappable.class,ExpressionAssignable.class,wt.option.IndependentExpressionAssignable.class},versions={761838992108053978L,6792485249319614263L},properties={@GeneratedProperty(name="rotation1",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="rotation2",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="rotation3",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="translation",type=double[][].class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(fixedArrayLength=3)),@GeneratedProperty(name="hasTransform",type=boolean.class),@GeneratedProperty(name="buildStatus",type=BuildStatus.class,supportedAPI=PUBLIC),@GeneratedProperty(name="componentID",type=java.lang.Integer.class,supportedAPI=PUBLIC,javaDoc="The integer identifier specifying the owner CAD Document\'s component id."),@GeneratedProperty(name="quantity",type=Quantity.class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(required=true),columnProperties=@ColumnProperties(columnName="C"))},depthLock=5)
public final class PartUsesOccurrence
extends _PartUsesOccurrence
This
UsesOccurrence has, in addition to its name
attribute, positioning information that can be used by visualization
to position the CAD drawing within the CAD drawing of its parent.
Use the newPartUsesOccurrence static factory method(s),
not the PartUsesOccurrence constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class wt.part._PartUsesOccurrence
BUILD_STATUS, COMPONENT_ID, QUANTITY, ROTATION1, ROTATION2, ROTATION3, TRANSLATIONFields inherited from interface wt.occurrence._Occurrence
NAME, OCCURRENCE_DATA_VECTORFields inherited from interface wt.occurrence._UsesOccurrence
USES_NAME, USES_OCCURRENCE_GLOBAL_ID, USES_OCCURRENCE_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the Transform to a zero-like Java3D matrix.protected voidinitialize(OccurrenceableLink occurrenceableLink) Supports initialization, following construction of an instance.protected voidinitialize(OccurrenceableLink occurrenceableLink, javax.vecmath.Matrix4d transform) Supports initialization, following construction of an instance.protected voidinitialize(PartUsesOccurrence original) Supports initialization, following construction of an instance.static PartUsesOccurrencenewPartUsesOccurrence(OccurrenceableLink occurrenceableLink) This constructor returns aPartUsesOccurrenceassociated to the givenOccurrenceableLink(normally aWTPartUsageLink) and with notransform.static PartUsesOccurrencenewPartUsesOccurrence(OccurrenceableLink occurrenceableLink, javax.vecmath.Matrix4d transform) This constructor returns aPartUsesOccurrenceassociated to the givenOccurrenceableLinknormally aWTPartUsageLink) and with the giventransform.static PartUsesOccurrencenewPartUsesOccurrence(PartUsesOccurrence original) This constructor returns a copy of thePartUsesOccurrencepassed to it.voidsetTransform(javax.vecmath.Matrix4d transform) Sets the Transform to the given Java3D matrix.javax.vecmath.Matrix4dReturns a Java 3D matrix for this Transform.Methods inherited from class wt.part._PartUsesOccurrence
getBuildStatus, getComponentID, getName, getOccurrenceDataVector, getQuantity, getUsesName, getUsesOccurrenceIdentifier, setBuildStatus, setComponentID, setName, setOccurrenceDataVector, setQuantity, setUsesName, setUsesOccurrenceGlobalId, setUsesOccurrenceIdentifier
-
Method Details
-
toMatrix4d
public javax.vecmath.Matrix4d toMatrix4d()Returns a Java 3D matrix for this Transform.
Supported API: true- Returns:
- Matrix4d
-
setTransform
public void setTransform(javax.vecmath.Matrix4d transform) Sets the Transform to the given Java3D matrix.
Supported API: true- Parameters:
transform-
-
clearTransform
Sets the Transform to a zero-like Java3D matrix.
Supported API: true- Throws:
WTPropertyVetoException
-
newPartUsesOccurrence
public static PartUsesOccurrence newPartUsesOccurrence(PartUsesOccurrence original) throws WTException, WTPropertyVetoException This constructor returns a copy of thePartUsesOccurrencepassed to it.
Supported API: true- Parameters:
original-- Returns:
- PartUsesOccurrence
- Throws:
WTExceptionWTPropertyVetoException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
original-- Throws:
WTExceptionWTPropertyVetoException
-
newPartUsesOccurrence
public static PartUsesOccurrence newPartUsesOccurrence(OccurrenceableLink occurrenceableLink) throws WTException, WTPropertyVetoException This constructor returns aPartUsesOccurrenceassociated to the givenOccurrenceableLink(normally aWTPartUsageLink) and with notransform.
Supported API: true- Parameters:
occurrenceableLink-- Returns:
- PartUsesOccurrence
- Throws:
WTExceptionWTPropertyVetoException
-
initialize
protected void initialize(OccurrenceableLink occurrenceableLink) throws WTException, WTPropertyVetoException Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
occurrenceableLink-- Throws:
WTExceptionWTPropertyVetoException
-
newPartUsesOccurrence
public static PartUsesOccurrence newPartUsesOccurrence(OccurrenceableLink occurrenceableLink, javax.vecmath.Matrix4d transform) throws WTException, WTPropertyVetoException This constructor returns aPartUsesOccurrenceassociated to the givenOccurrenceableLinknormally aWTPartUsageLink) and with the giventransform.
Supported API: true- Parameters:
occurrenceableLink-transform-- Returns:
- PartUsesOccurrence
- Throws:
WTExceptionWTPropertyVetoException
-
initialize
protected void initialize(OccurrenceableLink occurrenceableLink, javax.vecmath.Matrix4d transform) throws WTException, WTPropertyVetoException Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
occurrenceableLink-transform-- Throws:
WTExceptionWTPropertyVetoException
-