|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.part.PartUsesOccurrence
public final class 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
| Field Summary |
|---|
| Fields inherited from interface wt.occurrence.UsesOccurrence |
|---|
USES_NAME, USES_OCCURRENCE_IDENTIFIER |
| Fields inherited from interface wt.occurrence.Occurrence |
|---|
NAME, OCCURRENCE_DATA_VECTOR |
| Fields inherited from interface wt.occurrence.Occurrence |
|---|
NAME, OCCURRENCE_DATA_VECTOR |
| Method Summary | |
|---|---|
void |
clearTransform()
Sets the Transform to a zero-like Java3D matrix. |
String |
getName()
Gets the value of the attribute: NAME. |
Vector |
getOccurrenceDataVector()
Gets the value of the attribute: OCCURRENCE_DATA_VECTOR. |
String |
getUsesName()
Gets the value of the attribute: USES_NAME. |
long |
getUsesOccurrenceIdentifier()
Gets the value of the attribute: USES_OCCURRENCE_IDENTIFIER. |
protected void |
initialize(OccurrenceableLink occurrenceableLink)
Supports initialization, following construction of an instance. |
protected void |
initialize(OccurrenceableLink occurrenceableLink,
javax.vecmath.Matrix4d transform)
Supports initialization, following construction of an instance. |
protected void |
initialize(PartUsesOccurrence original)
Supports initialization, following construction of an instance. |
boolean |
isPlaceholder()
Returns true if the UsesOccurrence is only used to complete
a PathOccurrence and has no other useful information associated
with it. |
static PartUsesOccurrence |
newPartUsesOccurrence(OccurrenceableLink occurrenceableLink)
This constructor returns a PartUsesOccurrence associated
to the given OccurrenceableLink (normally a WTPartUsageLink)
and with no transform. |
static PartUsesOccurrence |
newPartUsesOccurrence(OccurrenceableLink occurrenceableLink,
javax.vecmath.Matrix4d transform)
This constructor returns a PartUsesOccurrence associated
to the given OccurrenceableLink normally a WTPartUsageLink)
and with the given transform. |
static PartUsesOccurrence |
newPartUsesOccurrence(PartUsesOccurrence original)
This constructor returns a copy of the PartUsesOccurrence
passed to it. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setOccurrenceDataVector(Vector a_OccurrenceDataVector)
Sets the value of the attribute: OCCURRENCE_DATA_VECTOR. |
void |
setTransform(javax.vecmath.Matrix4d transform)
Sets the Transform to the given Java3D matrix. |
void |
setUsesName(String a_UsesName)
Sets the value of the attribute: USES_NAME. |
void |
setUsesOccurrenceIdentifier(long a_UsesOccurrenceIdentifier)
Sets the value of the attribute: USES_OCCURRENCE_IDENTIFIER. |
javax.vecmath.Matrix4d |
toMatrix4d()
Returns a Java 3D matrix for this Transform. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public javax.vecmath.Matrix4d toMatrix4d()
public void setTransform(javax.vecmath.Matrix4d transform)
transform -
public void clearTransform()
throws WTPropertyVetoException
WTPropertyVetoException
public static PartUsesOccurrence newPartUsesOccurrence(PartUsesOccurrence original)
throws WTException,
WTPropertyVetoException
PartUsesOccurrence
passed to it.
original -
WTException
WTPropertyVetoException
protected void initialize(PartUsesOccurrence original)
throws WTException,
WTPropertyVetoException
original -
WTException
WTPropertyVetoException
public static PartUsesOccurrence newPartUsesOccurrence(OccurrenceableLink occurrenceableLink)
throws WTException,
WTPropertyVetoException
PartUsesOccurrence associated
to the given OccurrenceableLink (normally a WTPartUsageLink)
and with no transform.
occurrenceableLink -
WTException
WTPropertyVetoException
protected void initialize(OccurrenceableLink occurrenceableLink)
throws WTException,
WTPropertyVetoException
occurrenceableLink -
WTException
WTPropertyVetoException
public static PartUsesOccurrence newPartUsesOccurrence(OccurrenceableLink occurrenceableLink,
javax.vecmath.Matrix4d transform)
throws WTException,
WTPropertyVetoException
PartUsesOccurrence associated
to the given OccurrenceableLink normally a WTPartUsageLink)
and with the given transform.
occurrenceableLink - transform -
WTException
WTPropertyVetoException
protected void initialize(OccurrenceableLink occurrenceableLink,
javax.vecmath.Matrix4d transform)
throws WTException,
WTPropertyVetoException
occurrenceableLink - transform -
WTException
WTPropertyVetoExceptionpublic long getUsesOccurrenceIdentifier()
OccurrenceableLink objects,
all of which represent the same link, except maybe for different iterations
or versions of objects being linked. In other words, when the OccurrenceableLink
is copied forward this identifier is copied without changing
its value.
getUsesOccurrenceIdentifier in interface UsesOccurrence
public void setUsesOccurrenceIdentifier(long a_UsesOccurrenceIdentifier)
throws WTPropertyVetoException
OccurrenceableLink objects,
all of which represent the same link, except maybe for different iterations
or versions of objects being linked. In other words, when the OccurrenceableLink
is copied forward this identifier is copied without changing
its value.
setUsesOccurrenceIdentifier in interface UsesOccurrencea_UsesOccurrenceIdentifier -
WTPropertyVetoExceptionpublic String getUsesName()
name attribute is useful in some cases
by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences.
getUsesName in interface UsesOccurrence
public void setUsesName(String a_UsesName)
throws WTPropertyVetoException
name attribute is useful in some cases
by introspection so that the name of a UsesOccurrence
is distinct from the name of other Occurrences.
setUsesName in interface UsesOccurrencea_UsesName -
WTPropertyVetoExceptionpublic boolean isPlaceholder()
UsesOccurrence is only used to complete
a PathOccurrence and has no other useful information associated
with it.
isPlaceholder in interface UsesOccurrencepublic String getName()
Occurrence is often referred to as a Reference
Designator.
getName in interface Occurrence
public void setName(String a_Name)
throws WTPropertyVetoException
Occurrence is often referred to as a Reference
Designator.
setName in interface Occurrencea_Name -
WTPropertyVetoExceptionpublic Vector getOccurrenceDataVector()
Vector can be populated with OccurrenceData
that is associated to an Occurrence.
getOccurrenceDataVector in interface Occurrence
public void setOccurrenceDataVector(Vector a_OccurrenceDataVector)
throws WTPropertyVetoException
Vector can be populated with OccurrenceData
that is associated to an Occurrence.
setOccurrenceDataVector in interface Occurrencea_OccurrenceDataVector -
WTPropertyVetoException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||