Click or drag to resize
AB4D logo

TransparencySorter Methods

The TransparencySorter type exposes the following members.

Methods
 NameDescription
Public methodAddTransparentModels(Model3D) AddTransparentModels specifies that the models in the parameters should be treated as transparent models. This method must be called before the Sort method is called. If this method is called after Sort method, then a RecollectTransparentModels must be called for the models to be considered transparent.
Public methodAddTransparentModels(Visual3D) AddTransparentModels specifies that the Visual3D objects in the parameters should be treated as transparent models. This method must be called before the Sort method is called. If this method is called after Sort method, then a RecollectTransparentModels must be called for the Visual3D objects to be considered transparent.
Protected methodCalculateSortedValue CalculateSortedValue returns the sorted value for transparentModel3D and sortingType that will be used to set the model's order. The method can be overridden to provide custom objects ordering.
Public methodClearTransparentModels Clears the Model3D or Visual3D objects that were added with AddTransparentModels method.
Protected methodIsRearangeNeeded(FreeCamera) Returns true is the camera has changed enough to perform automatic sorting.
Protected methodIsRearangeNeeded(SphericalCamera) Returns true is the camera has changed enough to perform automatic sorting.
Public methodRecollectTransparentModels Refreshes the list of current transparent models (used in case when the opacity of some already collected models is changed).
Public methodRecollectTransparentModels(Model3DGroup) Refreshes the collection of transparent objects.
Public methodRecollectTransparentModels(ModelVisual3D) Refreshes the collection of transparent objects.
Public methodRecollectTransparentModels(Viewport3D) Refreshes the collection of transparent objects.
Public methodRecollectTransparentModels(Visual3DCollection) Refreshes the collection of transparent objects.
Public methodStatic memberSimpleSort(ContainerUIElement3D) Sorts objects in containerUIElement3D with moving transparent objects to the back of the objects collection.
Public methodStatic memberSimpleSort(Model3DGroup) Sorts objects in Model3DGroup with moving transparent objects to the back of the objects collection.
Public methodStatic memberSimpleSort(ModelVisual3D) Sorts objects in ModelVisual3D with moving transparent objects to the back of the objects collection.
Public methodStatic memberSimpleSort(Viewport3D) Sorts objects in Viewport3D with moving transparent objects to the back of the objects collection.
Public methodStatic memberSimpleSort(Visual3DCollection) Sorts objects in Visual3DCollection with moving transparent objects to the back of the objects collection.
Public methodSort Sort the objects.
Public methodSort(TransparencySorterSortingModeTypes) Sort the objects with the sortingType.
Public methodStatic memberSortByCameraDistance(ContainerUIElement3D, Point3D) Sorts objects in Visual3DCollection with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(Model3DGroup, BaseCamera) Sorts objects in Model3DGroup with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(Model3DGroup, Point3D) Sorts objects in Model3DGroup with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(ModelVisual3D, BaseCamera) Sorts objects in ModelVisual3D with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(ModelVisual3D, Point3D) Sorts objects in ModelVisual3D with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(Viewport3D, BaseCamera) Sorts objects in Viewport3D with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(Viewport3D, Point3D) Sorts objects in Viewport3D with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(Visual3DCollection, BaseCamera) Sorts objects in Visual3DCollection with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStatic memberSortByCameraDistance(Visual3DCollection, Point3D) Sorts objects in Visual3DCollection with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.
Public methodStartSortingOnCameraChanged StartSortingOnCameraChanged method starts checking the camera changed events and performs automatic sorting when the camera is changed for more than CameraAngleChange.
Public methodStopSortingOnCameraChanged Stops automatic sorting on camera changed event.
Top
See Also