Click or drag to resize

ItemLocationDirect Class

Represents an item location defined directly by position, size, anchors, and transforms.
Inheritance Hierarchy

Namespace: Altaxo.Graph.Graph3D
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[SerializableAttribute]
public class ItemLocationDirect : SuspendableDocumentLeafNodeWithEventArgs, 
	IItemLocation, IDocumentLeafNode, INamedObject, IChangedEventSource, ISuspendableByToken, 
	ITunnelingEventSource, IDisposable, ITreeNodeWithParent<IDocumentLeafNode>, ITreeNode<IDocumentLeafNode>, 
	INodeWithParentNode<IDocumentLeafNode>, ICopyFrom, ICloneable

The ItemLocationDirect type exposes the following members.

Constructors
 NameDescription
Public methodItemLocationDirect Initializes a new instance of the ItemLocationDirect class.
Public methodItemLocationDirect(IItemLocation) Initializes a new instance of the ItemLocationDirect class from another item location.
Public methodItemLocationDirect(ItemLocationDirect) Initializes a new instance of the ItemLocationDirect class by copying from another instance.
Top
Properties
 NameDescription
Public propertyAbsolutePivotPosition Gets or sets the absolute pivot position.
Public propertyAbsolutePivotPositionX Gets or sets the absolute x position of the pivot point of the item.
Public propertyAbsolutePivotPositionY Gets or sets the absolute y position of the pivot point of the item.
Public propertyAbsolutePivotPositionZ Gets or sets the absolute z position of the pivot point of the item.
Public propertyAbsolutePosition Gets or sets the absolute position.
Public propertyAbsolutePositionX Gets or sets the absolute x position.
Public propertyAbsolutePositionY Gets or sets the absolute y position.
Public propertyAbsolutePositionZ Gets or sets the absolute z position.
Public propertyAbsoluteSize Gets or sets the absolute size.
Public propertyAbsoluteSizeX Gets or sets the absolute width.
Public propertyAbsoluteSizeY Gets or sets the absolute height.
Public propertyAbsoluteSizeZ Gets or sets the absolute depth.
Public propertyAbsoluteVectorPivotToLeftUpper Gets the absolute vector between the pivot point of the item and its left upper edge.
Protected propertyAccumulatedEventData Gets the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected propertyDebug_AbsolutePath Gets the absolute path of the node for debugging purposes.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsAutoSized Gets a value indicating whether the this location belongs to a graphical element which is auto sized.
Public propertyIsDisposed Gets a value indicating whether this instance is disposed.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsDisposeInProgress Gets a value indicating whether for this instance dispose is in progress, or the instance is already disposed.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsSomeoneListeningToChanges Gets a value indicating whether someone is listening to changes. For this, either the ParentObject or the Changed event must be set.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsSuspended Gets a value indicating whether this instance is suspended.
(Inherited from SuspendableDocumentLeafNode)
Public propertyLocalAnchorX Gets or sets the local anchor's x position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item width. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the left boundary of the item, a relative value of 0.5 designates the horizontal center of the item, and a relative value of 1 designates the right boundary of the item.
Public propertyLocalAnchorY Gets or sets the local anchor's y position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item height. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the upper boundary of the item, a relative value of 0.5 designates the vertical center of the item, and a relative value of 1 designates the lower boundary of the item.
Public propertyLocalAnchorZ Gets or sets the local anchor's z position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item height. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the upper boundary of the item, a relative value of 0.5 designates the vertical center of the item, and a relative value of 1 designates the lower boundary of the item.
Public propertyName Gets the name of this document node. Null is returned if the name is not set or unknown. The set accessor will for most nodes throw a InvalidOperationException, since the name can only be set on IProjectItems.
(Inherited from SuspendableDocumentNodeBase)
Public propertyParentAnchorX Gets or sets the parent anchor's x position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's width. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the left boundary of the parent, a relative value of 0.5 designates the horizontal center of the parent, and a relative value of 1 designates the right boundary of the parent.
Public propertyParentAnchorY Gets or sets the parent anchor's y position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's height. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the upper boundary of the parent, a relative value of 0.5 designates the vertical center of the parent, and a relative value of 1 designates the lower boundary of the parent.
Public propertyParentAnchorZ Gets or sets the parent anchor's z position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's height. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the upper boundary of the parent, a relative value of 0.5 designates the vertical center of the parent, and a relative value of 1 designates the lower boundary of the parent.
Public propertyParentObject Gets/sets the parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase)
Public propertyParentSize Gets the cached parent size.
Public propertyPositionX The x position of the item, either absolute in points or relative to the parent's width.
Public propertyPositionY The y position of the item, either absolute or relative to the parent's height.
Public propertyPositionZ The z position of the item, either absolute or relative to the parent's height.
Public propertyRotationXThe rotation angle (in degrees) of the layer.
Public propertyRotationYThe rotation angle (in degrees) of the layer.
Public propertyRotationZThe rotation angle (in degrees) of the layer.
Public propertyScaleThe scaling factor of the item, normally 1.
Public propertyScaleXThe scaling factor of the item in x-direction, normally 1.
Public propertyScaleYThe scaling factor of the item in y-direction, normally 1.
Public propertyScaleZThe scaling factor of the item in z-direction, normally 1.
Public propertyShearXThe shear factor of the item.
Public propertyShearYThe shear factor of the item.
Public propertyShearZThe shear factor of the item.
Public propertySizeX The width of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's width.
Public propertySizeY The height of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's height.
Public propertySizeZ The z size of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's height.
Top
Methods
 NameDescription
Protected methodAccumulateChangeData Accumulates the change data of the child.
(Inherited from SuspendableDocumentLeafNodeWithEventArgs)
Protected methodAccumulatedChangeData_SetBackAfterResumeAndSuspend Sets the change data without further processing. This function is infrastructure and intended to use only in OnResume after the parent has suspended this node again.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected methodAccumulatedEventData_Clear Clears the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected methodAccumulatedEventData_HasZeroOrOneEventArg Determines whether there is no or only one single event arg accumulated. If this is the case, the return value is true. If there is one event arg accumulated, it is returned in the argument singleEventArg. The return value is false if there is more than one event arg accumulated. In this case the singleEventArg is null on return, and the calling function should use AccumulatedEventData to enumerate all accumulated event args.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Public methodChangeParentAnchorButKeepPosition Changes the parent anchor while keeping the absolute position constant.
Public methodChangeParentAnchorToLeftTopButKeepPosition Changes the parent anchor to the left-top-front corner while keeping the absolute position constant.
Public methodChangeRelativePositionValuesToAbsolutePositionValues Converts relative position values to absolute values.
Public methodChangeRelativeSizeValuesToAbsoluteSizeValues Converts relative size values to absolute values.
Protected methodChildDisposeMemberT Helper function to dispose a child node of this instance. It helps to ensure the correct order: first, the child node is set to null and only then the child node is disposed.
(Inherited from SuspendableDocumentNodeBase)
Public methodClone Creates a strongly typed copy of this item location.
Public methodCopyFrom Try to copy from another object. Should try to copy even if the object to copy from is not of the same type, but a base type. In this case only the base properties should be copied.
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from SuspendableDocumentNodeBase)
Protected methodDispose(Boolean) Releases unmanaged and - optionally - managed resources.
(Inherited from SuspendableDocumentNodeBase)
Public methodEhParentTunnelingEventHappened Is called by the parent when a tunneling event happened into the parent.
(Inherited from SuspendableDocumentNodeBase)
Public methodEhSelfChanged Calls EhSelfChanged(EventArgs) with Empty.
(Inherited from SuspendableDocumentLeafNodeWithEventArgs)
Protected methodEhSelfChanged(EventArgs) Called if some member of this instance itself has changed.
(Inherited from SuspendableDocumentLeafNode)
Public methodEhSelfTunnelingEventHappened(TunnelingEventArgs) Is called by this instance if a tunneling event happened into this instance. The tunneling event triggers the TunneledEvent and is additionally distributed to all childs of this instance.
(Inherited from SuspendableDocumentNodeBase)
Public methodEhSelfTunnelingEventHappened(TunnelingEventArgs, Boolean) Is called by this instance if a tunneling event happened into this instance. The tunneling event triggers the TunneledEvent and is - depending on the provided parameter - also distributed to all childs of this instance.
(Inherited from SuspendableDocumentNodeBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Finalizes an instance of the SuspendableDocumentNodeBase class.
(Inherited from SuspendableDocumentNodeBase)
Public methodGetAbsoluteEnclosingRectangle Gets the absolute enclosing rectangle, taking into account ScaleX, ScaleY, Rotation and Shear (SSRS).
Public methodGetAbsoluteEnclosingRectangleWithoutSSRS Gets the absolute enclosing rectangle without taking into account ScaleX, ScaleY, Rotation and Shear (SSRS).
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHandleLowPriorityChildChangeCases Handles the cases when a child changes, but a reaction is necessary only if the node is currently not suspended.
(Inherited from SuspendableDocumentLeafNode)
Protected methodInternalSetAbsoluteSizeSilent Updates the absolute size without raising change notifications.
Protected methodInternalSetAbsoluteSizeXSilent Updates the absolute width without raising change notifications.
Protected methodInternalSetAbsoluteSizeYSilent Updates the absolute height without raising change notifications.
Protected methodInternalSetAbsoluteSizeZSilent Updates the absolute depth without raising change notifications.
Protected methodInternalSetScaleSilent Updates all scale components without raising change notifications.
Protected methodInternalSetScaleXSilent Updates the x scale without raising change notifications.
Protected methodInternalSetScaleYSilent Updates the y scale without raising change notifications.
Protected methodInternalSetScaleZSilent Updates the z scale without raising change notifications.
Protected methodInternalSetSizeSilent Updates all size components without raising change notifications.
Protected methodInternalSetSizeXSilent Updates the width value without raising change notifications.
Protected methodInternalSetSizeYSilent Updates the height value without raising change notifications.
Protected methodInternalSetSizeZSilent Updates the depth value without raising change notifications.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnAboutToBeResumed Is called when the suspend level is still 1 (one), but is about to fall to zero, i.e. shortly before the call to OnResume. This function is not called before OnResumeSilently!
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnChanged Fires the change event with the EventArgs provided in the argument.
(Inherited from SuspendableDocumentNodeBase)
Protected methodOnResume Is called when the suspend level falls down from 1 to zero by a call to Resume or a call to [M:Altaxo.Main.ISuspendToken.Dispose()].
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnResumeSilently Is called when the suspend level falls down from 1 to zero by a call to ResumeSilently. The implementation should delete any accumulated events, should also disarm the suspendTokens of the childs of this object, and should not fire any Changed events nor set the change state of the object to dirty.
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnSuspended Called when the suspend level has just gone from 0 to 1, i.e. the object was suspended.
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnTunnelingEvent Fires the TunneledEvent event.
(Inherited from SuspendableDocumentNodeBase)
Public methodResume(ISuspendToken) Resumes changed events by calling Resume for the provided suspend token, and setting the reference to the suspend token to null. If Event data were accumulated during the suspended state, a changed event is triggered for each event data.
(Inherited from SuspendableDocumentNodeBase)
Public methodResume(ISuspendToken, EventFiring) Resumes changed events, either with taking the accumulated event data into account (see Resume(ISuspendToken)) or discarding the accumulated event data (see ResumeSilently(ISuspendToken), depending on the provided argument eventFiring.
(Inherited from SuspendableDocumentNodeBase)
Public methodResumeCompleteTemporarily Resumes the object completely for only a short time. Thus, if object was suspended before, it will be suspended again when the function returns.
(Inherited from SuspendableDocumentLeafNode)
Public methodResumeCompleteTemporarilyGetToken Resumes the object completely for the time the returned token is referenced and not disposed. The return value is a token that had 'absorbed' the suspend count of the object, resulting in the suspend count of the object dropped to 0 (zero). When the returned token is finally disposed, the suspend count of the object is increased again by the 'absorbed' suspend count.
(Inherited from SuspendableDocumentLeafNode)
Public methodResumeSilently Resumes changed events by calling Resume for the provided suspend token, and setting the reference to the suspend token to null. All event data accumulated during the suspended state are discarded, and thus no change event is triggered even if the instance has changed during the suspended state.
(Inherited from SuspendableDocumentNodeBase)
Public methodSetAbsolutePivotPosition Sets the absolute pivot position.
Public methodSetAbsoluteSize Sets the absolute size.
Public methodSetDisposeInProgress Sets the flag that dispose is in progress for this node and all child nodes recursively.
(Inherited from SuspendableDocumentNodeBase)
Protected methodSetMemberAndRaiseSelfChangedT(NullableT, NullableT) Sets a member variable of this instance and raise a change event with Empty if the new value is different from the old value. The comparison is done using the IEquatableT interface of the member variable. Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase)
Protected methodSetMemberAndRaiseSelfChangedT(T, T) Sets a member variable of this instance and raise a change event with Empty if the new value is different from the old value. The comparison is done using the IEquatableT interface of the member variable. Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase)
Protected methodSetMemberEnumAndRaiseSelfChangedT Sets a member variable (which is an Enum) of this instance and raise a change event with Empty if the new value is different from the old value. The comparison is done using the IEquatableT interface of the member variable. Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase)
Public methodSetParentSize Updates the cached parent size.
Public methodSetPositionAndSize Sets position and size in one operation.
Public methodSetRelativeSizePositionFromAbsoluteValues Converts absolute size and position values into relative values.
Public methodSuspendGetToken Suspend will increase the SuspendLevel.
(Inherited from SuspendableDocumentLeafNode)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetName Test if this item already has a name.
(Inherited from SuspendableDocumentNodeBase)
Top
Events
 NameDescription
Public eventChangedFired when something in the object has changed, and the object is not suspended.
(Inherited from SuspendableDocumentNodeBase)
Public eventTunneledEvent The event that is fired when the object is disposed. First argument is the sender, second argument is the original source, and third argument is the event arg.
(Inherited from SuspendableDocumentNodeBase)
Top
Fields
 NameDescription
Protected field_accumulatedEventData Holds the accumulated change data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected field_localAnchorX Stores the local x anchor.
Protected field_localAnchorY Stores the local y anchor.
Protected field_localAnchorZ Stores the local z anchor.
Protected field_parent The parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase)
Protected field_parentAnchorX Stores the parent x anchor.
Protected field_parentAnchorY Stores the parent y anchor.
Protected field_parentAnchorZ Stores the parent z anchor.
Protected field_parentSize Stores the size of the parent container.
Protected field_positionX Stores the x position component.
Protected field_positionY Stores the y position component.
Protected field_positionZ Stores the z position component.
Protected field_rotationXThe rotation angle (in degrees) of the layer.
Protected field_rotationYThe rotation angle (in degrees) of the layer.
Protected field_rotationZThe rotation angle (in degrees) of the layer.
Protected field_scaleXThe scaling factor of the layer, normally 1.
Protected field_scaleY Stores the y scaling factor.
Protected field_scaleZ Stores the z scaling factor.
Protected field_shearX Stores the x shear factor.
Protected field_shearY Stores the y shear factor.
Protected field_shearZ Stores the z shear factor.
Protected field_sizeX Stores the width component.
Protected field_sizeY Stores the height component.
Protected field_sizeZ Stores the depth component.
Top
Extension Methods
 NameDescription
Public Extension MethodGetPropertyContext Gets the property context of the document node. If the provided node is not implementing IPropertyBagOwner, the parent nodes of this node are searched, until a node which implements IPropertyBagOwner is found.
(Defined by PropertyExtensions)
Top
See Also