com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Entity

    • Constructor Detail

      • Entity

        public Entity(java.lang.String name)
        Initializes a new instance of the Entity class.
        Parameters:
        name - Name.
      • Entity

        protected Entity()
        Initializes a new instance of the Entity class.
    • Method Detail

      • getParentNodes

        public java.util.ArrayList<Node> getParentNodes()
        Gets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing
      • getExcluded

        public boolean getExcluded()
        Gets wheather to exclude this entity during exporting.
      • setExcluded

        public void setExcluded(boolean value)
        Sets wheather to exclude this entity during exporting.
        Parameters:
        value - New value
      • getParentNode

        public Node getParentNode()
        Gets the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
      • setParentNode

        public void setParentNode(Node value)
        Sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
        Parameters:
        value - New value
      • createRenderableResource

        protected RenderableResource createRenderableResource(Renderer renderer)
        Sub-class can override this to provide hardware-accelerated rendering ability. Since each scene can be used by multiple renderer, so the hardware resources should be separated by using this method. Each renderer will only call this once per node, entity can share the resources like buffers/shaders between different RenderableResource per each node The RenderableResource will send render request to render queue when it's chosen by the renderer.
        Parameters:
        renderer -
      • getBoundingBox

        public BoundingBox getBoundingBox()
        Gets the bounding box of current entity in its object space coordinate system.