mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-20 18:29:13 +00:00
General: Remove unnecessary inline specifiers and add overrides
This commit is contained in:
@@ -17,29 +17,29 @@ class CModelNode : public CSceneNode
|
||||
public:
|
||||
explicit CModelNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = 0, CModel *pModel = 0);
|
||||
|
||||
virtual ENodeType NodeType();
|
||||
virtual void PostLoad();
|
||||
virtual void AddToRenderer(CRenderer *pRenderer, const SViewInfo& rkViewInfo);
|
||||
virtual void Draw(FRenderOptions Options, int ComponentIndex, ERenderCommand Command, const SViewInfo& rkViewInfo);
|
||||
virtual void DrawSelection();
|
||||
virtual void RayAABoxIntersectTest(CRayCollisionTester& Tester, const SViewInfo& rkViewInfo);
|
||||
virtual SRayIntersection RayNodeIntersectTest(const CRay &Ray, uint32 AssetID, const SViewInfo& rkViewInfo);
|
||||
virtual CColor TintColor(const SViewInfo& rkViewInfo) const;
|
||||
ENodeType NodeType() override;
|
||||
void PostLoad() override;
|
||||
void AddToRenderer(CRenderer* pRenderer, const SViewInfo& rkViewInfo) override;
|
||||
void Draw(FRenderOptions Options, int ComponentIndex, ERenderCommand Command, const SViewInfo& rkViewInfo) override;
|
||||
void DrawSelection() override;
|
||||
void RayAABoxIntersectTest(CRayCollisionTester& Tester, const SViewInfo& rkViewInfo) override;
|
||||
SRayIntersection RayNodeIntersectTest(const CRay& Ray, uint32 AssetID, const SViewInfo& rkViewInfo) override;
|
||||
CColor TintColor(const SViewInfo& rkViewInfo) const override;
|
||||
|
||||
// Setters
|
||||
void SetModel(CModel *pModel);
|
||||
|
||||
inline void SetMatSet(uint32 MatSet) { mActiveMatSet = MatSet; }
|
||||
inline void SetWorldModel(bool World) { mWorldModel = World; }
|
||||
inline void ForceAlphaEnabled(bool Enable) { mForceAlphaOn = Enable; }
|
||||
inline void SetTintColor(const CColor& rkTintColor) { mTintColor = rkTintColor; }
|
||||
inline void ClearTintColor() { mTintColor = CColor::skWhite; }
|
||||
inline void SetScanOverlayEnabled(bool Enable) { mEnableScanOverlay = Enable; }
|
||||
inline void SetScanOverlayColor(const CColor& rkColor) { mScanOverlayColor = rkColor; }
|
||||
inline CModel* Model() const { return mpModel; }
|
||||
inline uint32 MatSet() const { return mActiveMatSet; }
|
||||
inline bool IsWorldModel() const { return mWorldModel; }
|
||||
inline uint32 FindMeshID() const { return mpModel->GetSurface(0)->MeshID; }
|
||||
void SetMatSet(uint32 MatSet) { mActiveMatSet = MatSet; }
|
||||
void SetWorldModel(bool World) { mWorldModel = World; }
|
||||
void ForceAlphaEnabled(bool Enable) { mForceAlphaOn = Enable; }
|
||||
void SetTintColor(const CColor& rkTintColor) { mTintColor = rkTintColor; }
|
||||
void ClearTintColor() { mTintColor = CColor::skWhite; }
|
||||
void SetScanOverlayEnabled(bool Enable) { mEnableScanOverlay = Enable; }
|
||||
void SetScanOverlayColor(const CColor& rkColor) { mScanOverlayColor = rkColor; }
|
||||
CModel* Model() const { return mpModel; }
|
||||
uint32 MatSet() const { return mActiveMatSet; }
|
||||
bool IsWorldModel() const { return mWorldModel; }
|
||||
uint32 FindMeshID() const { return mpModel->GetSurface(0)->MeshID; }
|
||||
};
|
||||
|
||||
#endif // CMODELNODE_H
|
||||
|
||||
Reference in New Issue
Block a user