Space Engineers
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Sandbox.Game.Components.MyRenderComponentCubeGrid Class Reference
Inheritance diagram for Sandbox.Game.Components.MyRenderComponentCubeGrid:
Sandbox.Game.Components.MyRenderComponent VRage.Game.Components.MyRenderComponentBase VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase

Public Member Functions

 MyRenderComponentCubeGrid ()
 
void CreateAdditionalModelGenerators (MyCubeSize gridSizeEnum)
 
void CloseModelGenerators ()
 
void RebuildDirtyCells ()
 
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
override void Draw ()
 
void ResetLastVoxelContactTimer ()
 
override void AddRenderObjects ()
 
override void RemoveRenderObjects ()
 
- Public Member Functions inherited from Sandbox.Game.Components.MyRenderComponent
override void SetRenderObjectID (int index, uint ID)
 
override void ReleaseRenderObjectID (int index)
 
override bool IsVisible ()
 
- Public Member Functions inherited from VRage.Game.Components.MyRenderComponentBase
int GetRenderObjectID ()
 
void ResizeRenderObjectArray (int newSize)
 
bool IsRenderObjectAssigned (int index)
 
virtual void InvalidateRenderObjects (bool sortIntoCullobjects=false)
 
virtual void UpdateRenderEntity (Vector3 colorMaskHSV)
 
void UpdateRenderObject (bool visible)
 
Color GetDiffuseColor ()
 
virtual RenderFlags GetRenderFlags ()
 
virtual VRageRender.CullingOptions GetRenderCullingOptions ()
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
virtual void SetContainer (MyComponentContainer container)
 Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself. More...
 
virtual T GetAs< T > ()
 
virtual void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
virtual void OnRemovedFromScene ()
 CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! More...
 
virtual MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
virtual void Deserialize (MyObjectBuilder_ComponentBase builder)
 
virtual void Init (MyComponentDefinitionBase definition)
 
virtual bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 

Public Attributes

uint[] AdditionalRenderObjects = new uint[0]
 
- Public Attributes inherited from VRage.Game.Components.MyRenderComponentBase
int LastMomentUpdateIndex = -1
 
float Transparency
 
byte DepthBias = 0
 

Protected Member Functions

override void UpdateRenderObjectVisibility (bool visible)
 
- Protected Member Functions inherited from VRage.Game.Components.MyRenderComponentBase
virtual bool CanBeAddedToRender ()
 
void SetDiffuseColor (Color vctColor)
 

Properties

MyCubeGrid CubeGrid [get]
 
MyCubeGridRenderData RenderData [get]
 
List< IMyBlockAdditionalModelGeneratorAdditionalModelGenerators [get]
 
MyCubeSize GridSizeEnum [get]
 
float GridSize [get]
 
bool IsStatic [get]
 
- Properties inherited from Sandbox.Game.Components.MyRenderComponent
MyModel Model [get, set]
 
override object ModelStorage [get, set]
 
override bool NeedsDraw [get, set]
 
- Properties inherited from VRage.Game.Components.MyRenderComponentBase
abstract object ModelStorage [get, set]
 Used by game to store model here. In game this is always of type MyModel. Implementation should only store and return passed object. More...
 
bool EnableColorMaskHsv [get, set]
 
Vector3 ColorMaskHsv [get, set]
 
MyPersistentEntityFlags2 PersistentFlags [get, set]
 
uint[] RenderObjectIDs [get]
 
bool Visible [get, set]
 
virtual bool NearFlag [get, set]
 
bool NeedsDrawFromParent [get, set]
 
bool CastShadows [get, set]
 
bool NeedsResolveCastShadow [get, set]
 
bool FastCastShadowResolve [get, set]
 
bool SkipIfTooSmall [get, set]
 
bool DrawOutsideViewDistance [get, set]
 
bool ShadowBoxLod [get, set]
 
bool OffsetInVertexShader [get, set]
 
virtual bool NeedsDraw [get, set]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Additional Inherited Members

- Static Public Attributes inherited from VRage.Game.Components.MyRenderComponentBase
static readonly Vector3 OldRedToHSV = new Vector3(0, 0.0f, 0.05f)
 
static readonly Vector3 OldYellowToHSV = new Vector3(44 / 360f, -0.1f, 0.26f)
 
static readonly Vector3 OldBlueToHSV = new Vector3(207 / 360f, 0, 0)
 
static readonly Vector3 OldGreenToHSV = new Vector3(120 / 360f, -0.48f, -0.25f)
 
static readonly Vector3 OldBlackToHSV = new Vector3(0, -0.96f, -0.5f)
 
static readonly Vector3 OldWhiteToHSV = new Vector3(0, -0.95f, 0.4f)
 
static readonly Vector3 OldGrayToHSV = new Vector3(0, -1f, 0f)
 
- Protected Attributes inherited from Sandbox.Game.Components.MyRenderComponent
MyModel m_model
 
- Protected Attributes inherited from VRage.Game.Components.MyRenderComponentBase
Vector3 m_colorMaskHsv = OldGrayToHSV
 
bool m_enableColorMaskHsv = false
 
Color m_diffuseColor = Color.White
 
uint[] m_renderObjectIDs = new uint[] { VRageRender.MyRenderProxy.RENDER_ID_UNASSIGNED }
 
- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 34 of file MyRenderComponentCubeGrid.cs.

Constructor & Destructor Documentation

Sandbox.Game.Components.MyRenderComponentCubeGrid.MyRenderComponentCubeGrid ( )
inline

Definition at line 36 of file MyRenderComponentCubeGrid.cs.

Member Function Documentation

override void Sandbox.Game.Components.MyRenderComponentCubeGrid.AddRenderObjects ( )
inlinevirtual

Reimplemented from Sandbox.Game.Components.MyRenderComponent.

Definition at line 407 of file MyRenderComponentCubeGrid.cs.

void Sandbox.Game.Components.MyRenderComponentCubeGrid.CloseModelGenerators ( )
inline

Definition at line 132 of file MyRenderComponentCubeGrid.cs.

void Sandbox.Game.Components.MyRenderComponentCubeGrid.CreateAdditionalModelGenerators ( MyCubeSize  gridSizeEnum)
inline

Definition at line 70 of file MyRenderComponentCubeGrid.cs.

override void Sandbox.Game.Components.MyRenderComponentCubeGrid.Draw ( )
inlinevirtual

Reimplemented from Sandbox.Game.Components.MyRenderComponent.

Definition at line 196 of file MyRenderComponentCubeGrid.cs.

override void Sandbox.Game.Components.MyRenderComponentCubeGrid.OnAddedToContainer ( )
inlinevirtual

Gets called after the container of this component changes

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 151 of file MyRenderComponentCubeGrid.cs.

override void Sandbox.Game.Components.MyRenderComponentCubeGrid.OnBeforeRemovedFromContainer ( )
inlinevirtual

Gets called before the removal of this component from a container

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 157 of file MyRenderComponentCubeGrid.cs.

void Sandbox.Game.Components.MyRenderComponentCubeGrid.RebuildDirtyCells ( )
inline

Definition at line 144 of file MyRenderComponentCubeGrid.cs.

override void Sandbox.Game.Components.MyRenderComponentCubeGrid.RemoveRenderObjects ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MyRenderComponentBase.

Definition at line 418 of file MyRenderComponentCubeGrid.cs.

void Sandbox.Game.Components.MyRenderComponentCubeGrid.ResetLastVoxelContactTimer ( )
inline

Definition at line 402 of file MyRenderComponentCubeGrid.cs.

override void Sandbox.Game.Components.MyRenderComponentCubeGrid.UpdateRenderObjectVisibility ( bool  visible)
inlineprotectedvirtual

Reimplemented from VRage.Game.Components.MyRenderComponentBase.

Definition at line 437 of file MyRenderComponentCubeGrid.cs.

Member Data Documentation

uint [] Sandbox.Game.Components.MyRenderComponentCubeGrid.AdditionalRenderObjects = new uint[0]

Definition at line 67 of file MyRenderComponentCubeGrid.cs.

Property Documentation

List<IMyBlockAdditionalModelGenerator> Sandbox.Game.Components.MyRenderComponentCubeGrid.AdditionalModelGenerators
get

Definition at line 65 of file MyRenderComponentCubeGrid.cs.

MyCubeGrid Sandbox.Game.Components.MyRenderComponentCubeGrid.CubeGrid
get

Definition at line 45 of file MyRenderComponentCubeGrid.cs.

float Sandbox.Game.Components.MyRenderComponentCubeGrid.GridSize
get

Definition at line 118 of file MyRenderComponentCubeGrid.cs.

MyCubeSize Sandbox.Game.Components.MyRenderComponentCubeGrid.GridSizeEnum
get

Definition at line 111 of file MyRenderComponentCubeGrid.cs.

bool Sandbox.Game.Components.MyRenderComponentCubeGrid.IsStatic
get

Definition at line 125 of file MyRenderComponentCubeGrid.cs.

MyCubeGridRenderData Sandbox.Game.Components.MyRenderComponentCubeGrid.RenderData
get

Definition at line 53 of file MyRenderComponentCubeGrid.cs.


The documentation for this class was generated from the following file: