/** * @see #setCullHint(CullHint) * @return the cull mode of this spatial, or if set to INHERIT, the cullmode of its parent. */ public CullHint getCullHint() { if (_cullHint != CullHint.Inherit) { return _cullHint; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getCullHint(); } return CullHint.Dynamic; }
/** * @see #setCullHint(CullHint) * @return the cull mode of this spatial, or if set to INHERIT, the cullmode of its parent. */ public CullHint getCullHint() { if (_cullHint != CullHint.Inherit) { return _cullHint; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getCullHint(); } return CullHint.Dynamic; }
/** * Returns the transparency rendering type. If the mode is set to inherit, then we get its type from the given * source's hintable parent. If no parent, we'll default to OnePass. * * @return The transparency rendering type to use. */ public TransparencyType getTransparencyType() { if (_transpType != TransparencyType.Inherit) { return _transpType; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getTransparencyType(); } return TransparencyType.OnePass; }
/** * Returns this spatial's light combine mode. If the mode is set to inherit, then the spatial gets its combine mode * from its parent. * * @return The spatial's light current combine mode. */ public LightCombineMode getLightCombineMode() { if (_lightCombineMode != LightCombineMode.Inherit) { return _lightCombineMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getLightCombineMode(); } return LightCombineMode.CombineFirst; }
/** * Returns this spatial's texture combine mode. If the mode is set to inherit, then the spatial gets its combine * mode from its parent. * * @return The spatial's texture current combine mode. */ public TextureCombineMode getTextureCombineMode() { if (_textureCombineMode != TextureCombineMode.Inherit) { return _textureCombineMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getTextureCombineMode(); } return TextureCombineMode.CombineClosest; }
/** * Returns the normals mode. If the mode is set to inherit, then we get its normals mode from the given source's * hintable parent. If no parent, we'll default to NormalizeIfScaled. * * @return The normals mode to use. */ public DataMode getDataMode() { if (_dataMode != DataMode.Inherit) { return _dataMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getDataMode(); } return DataMode.Arrays; }
/** * Returns this spatial's property mode. If the mode is set to inherit, then the spatial gets its property mode from * its parent. * * @return The spatial's light current combine mode. */ public PropertyMode getPropertyMode() { if (_propertyMode != PropertyMode.Inherit) { return _propertyMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getPropertyMode(); } return PropertyMode.UseParentIfUnset; }
/** * Returns the normals mode. If the mode is set to inherit, then we get its normals mode from the given source's * hintable parent. If no parent, we'll default to NormalizeIfScaled. * * @return The normals mode to use. */ public NormalsMode getNormalsMode() { if (_normalsMode != NormalsMode.Inherit) { return _normalsMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getNormalsMode(); } return NormalsMode.NormalizeIfScaled; }
/** * Returns this spatial's light combine mode. If the mode is set to inherit, then the spatial gets its combine mode * from its parent. * * @return The spatial's light current combine mode. */ public LightCombineMode getLightCombineMode() { if (_lightCombineMode != LightCombineMode.Inherit) { return _lightCombineMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getLightCombineMode(); } return LightCombineMode.CombineFirst; }
/** * Returns the normals mode. If the mode is set to inherit, then we get its normals mode from the given source's * hintable parent. If no parent, we'll default to NormalizeIfScaled. * * @return The normals mode to use. */ public NormalsMode getNormalsMode() { if (_normalsMode != NormalsMode.Inherit) { return _normalsMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getNormalsMode(); } return NormalsMode.NormalizeIfScaled; }
/** * Returns this spatial's texture combine mode. If the mode is set to inherit, then the spatial gets its combine * mode from its parent. * * @return The spatial's texture current combine mode. */ public TextureCombineMode getTextureCombineMode() { if (_textureCombineMode != TextureCombineMode.Inherit) { return _textureCombineMode; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getTextureCombineMode(); } return TextureCombineMode.CombineClosest; }
/** * Returns the transparency rendering type. If the mode is set to inherit, then we get its type from the given * source's hintable parent. If no parent, we'll default to OnePass. * * @return The transparency rendering type to use. */ public TransparencyType getTransparencyType() { if (_transpType != TransparencyType.Inherit) { return _transpType; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getTransparencyType(); } return TransparencyType.OnePass; }
/** * Get the render bucket type used to determine which "phase" of the rendering process this Spatial will rendered * in. * <p> * This method returns the effective bucket type that is used for rendering. If the type is set to * {@link com.ardor3d.renderer.queue.RenderBucketType#Inherit Inherit} then the bucket type from the spatial's * parent will be used during rendering. If no parent, then * {@link com.ardor3d.renderer.queue.RenderBucketType#Opaque Opaque} is used. * * @return the render queue mode used for this spatial. * @see com.ardor3d.renderer.queue.RenderBucketType */ public RenderBucketType getRenderBucketType() { if (_renderBucketType != RenderBucketType.Inherit) { return _renderBucketType; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getRenderBucketType(); } return RenderBucketType.Opaque; }
/** * Get the render bucket type used to determine which "phase" of the rendering process this Spatial will rendered * in. * <p> * This method returns the effective bucket type that is used for rendering. If the type is set to * {@link com.ardor3d.renderer.queue.RenderBucketType#Inherit Inherit} then the bucket type from the spatial's * parent will be used during rendering. If no parent, then * {@link com.ardor3d.renderer.queue.RenderBucketType#Opaque Opaque} is used. * * @return the render queue mode used for this spatial. * @see com.ardor3d.renderer.queue.RenderBucketType */ public RenderBucketType getRenderBucketType() { if (_renderBucketType != RenderBucketType.Inherit) { return _renderBucketType; } final Hintable parent = _source.getParentHintable(); if (parent != null) { return parent.getSceneHints().getRenderBucketType(); } return RenderBucketType.Opaque; }