public class Object3DBranchFactory extends java.lang.Object implements Object3DFactory
Object3DBranch
class.Constructor and Description |
---|
Object3DBranchFactory() |
Object3DBranchFactory(UserPreferences preferences) |
Object3DBranchFactory(UserPreferences preferences,
java.lang.Object context) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createObject3D(Home home,
Selectable item,
boolean waitForLoading)
Returns the 3D object matching a given
item . |
java.lang.Object |
createObject3D(Home home,
Selectable item,
UserPreferences preferences,
java.lang.Object context,
boolean waitForLoading)
Returns the 3D object matching a given
item . |
java.lang.Object |
getContext()
Returns the context of this factory used to create 3D objects.
|
boolean |
isDrawingModeEnabled() |
public Object3DBranchFactory()
public Object3DBranchFactory(UserPreferences preferences)
public Object3DBranchFactory(UserPreferences preferences, java.lang.Object context)
public boolean isDrawingModeEnabled()
public java.lang.Object getContext()
public java.lang.Object createObject3D(Home home, Selectable item, boolean waitForLoading)
item
.createObject3D
in interface Object3DFactory
home
- the home of an itemitem
- a selectable item of a homewaitForLoading
- if true
all resources used by the returned object should be availablepublic java.lang.Object createObject3D(Home home, Selectable item, UserPreferences preferences, java.lang.Object context, boolean waitForLoading)
item
.createObject3D
in interface Object3DFactory
home
- the home of an itemitem
- a selectable item of a homepreferences
- preferences of the applicationcontext
- context used to distinguish the creation of a 3D object from an other one.waitForLoading
- if true
all resources used by the returned object should be available
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License