Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
GeoSphere Class Reference

#include <GeoSphere.h>

Inheritance diagram for GeoSphere:
Inheritance graph
[legend]
Collaboration diagram for GeoSphere:
Collaboration graph
[legend]

Public Member Functions

 GeoSphere (const SystemBody *body)
 
virtual ~GeoSphere ()
 
virtual void Update () override
 
virtual void Render (Graphics::Renderer *renderer, const matrix4x4d &modelView, vector3d campos, const float radius, const std::vector< Camera::Shadow > &shadows) override
 
virtual double GetHeight (const vector3d &p) const override final
 
virtual double GetMaxFeatureHeight () const override final
 
bool AddQuadSplitResult (SQuadSplitResult *res)
 
bool AddSingleSplitResult (SSingleSplitResult *res)
 
void ProcessSplitResults ()
 
virtual void Reset () override
 
Sint32 GetMaxDepth () const
 
void AddQuadSplitRequest (double, SQuadSplitRequest *, GeoPatch *)
 
- Public Member Functions inherited from BaseSphere
 BaseSphere (const SystemBody *body)
 
virtual ~BaseSphere ()
 
virtual void Update ()=0
 
virtual void Render (Graphics::Renderer *renderer, const matrix4x4d &modelView, vector3d campos, const float radius, const std::vector< Camera::Shadow > &shadows)=0
 
virtual double GetHeight (const vector3d &p) const
 
void DrawAtmosphereSurface (Graphics::Renderer *renderer, const matrix4x4d &modelView, const vector3d &campos, float rad, RefCountedPtr< Graphics::Material > mat)
 
virtual double GetMaxFeatureHeight () const =0
 
virtual void Reset ()=0
 
const SystemBodyGetSystemBody () const
 
TerrainGetTerrain () const
 
RefCountedPtr< Graphics::MaterialGetSurfaceMaterial () const
 

Static Public Member Functions

static void Init ()
 
static void Uninit ()
 
static void UpdateAllGeoSpheres ()
 
static void OnChangeDetailLevel ()
 
static bool OnAddQuadSplitResult (const SystemPath &path, SQuadSplitResult *res)
 
static bool OnAddSingleSplitResult (const SystemPath &path, SSingleSplitResult *res)
 
- Static Public Member Functions inherited from BaseSphere
static void Init ()
 
static void Uninit ()
 
static void UpdateAllBaseSphereDerivatives ()
 
static void OnChangeDetailLevel ()
 

Additional Inherited Members

- Protected Member Functions inherited from BaseSphere
virtual void SetUpMaterials ()=0
 
void SetMaterialParameters (const matrix4x4d &t, const float r, const std::vector< Camera::Shadow > &s, const AtmosphereParameters &ap)
 
- Protected Attributes inherited from BaseSphere
const SystemBodym_sbody
 
RefCountedPtr< Terrainm_terrain
 
RefCountedPtr< Graphics::Materialm_surfaceMaterial
 
RefCountedPtr< Graphics::Materialm_atmosphereMaterial
 
std::unique_ptr< Graphics::Drawables::Sphere3Dm_atmos
 

Constructor & Destructor Documentation

◆ GeoSphere()

GeoSphere::GeoSphere ( const SystemBody body)
Here is the call graph for this function:

◆ ~GeoSphere()

GeoSphere::~GeoSphere ( )
virtual

Member Function Documentation

◆ AddQuadSplitRequest()

void GeoSphere::AddQuadSplitRequest ( double  dist,
SQuadSplitRequest pReq,
GeoPatch pPatch 
)

◆ AddQuadSplitResult()

bool GeoSphere::AddQuadSplitResult ( SQuadSplitResult res)

◆ AddSingleSplitResult()

bool GeoSphere::AddSingleSplitResult ( SSingleSplitResult res)

◆ GetHeight()

virtual double GeoSphere::GetHeight ( const vector3d p) const
inlinefinaloverridevirtual

Reimplemented from BaseSphere.

Here is the call graph for this function:

◆ GetMaxDepth()

Sint32 GeoSphere::GetMaxDepth ( ) const
inline

◆ GetMaxFeatureHeight()

virtual double GeoSphere::GetMaxFeatureHeight ( ) const
inlinefinaloverridevirtual

Implements BaseSphere.

◆ Init()

void GeoSphere::Init ( )
static
Here is the call graph for this function:

◆ OnAddQuadSplitResult()

bool GeoSphere::OnAddQuadSplitResult ( const SystemPath path,
SQuadSplitResult res 
)
static
Here is the call graph for this function:

◆ OnAddSingleSplitResult()

bool GeoSphere::OnAddSingleSplitResult ( const SystemPath path,
SSingleSplitResult res 
)
static
Here is the call graph for this function:

◆ OnChangeDetailLevel()

void GeoSphere::OnChangeDetailLevel ( )
static
Here is the call graph for this function:

◆ ProcessSplitResults()

void GeoSphere::ProcessSplitResults ( )
Here is the call graph for this function:

◆ Render()

void GeoSphere::Render ( Graphics::Renderer renderer,
const matrix4x4d modelView,
vector3d  campos,
const float  radius,
const std::vector< Camera::Shadow > &  shadows 
)
overridevirtual

Implements BaseSphere.

Here is the call graph for this function:

◆ Reset()

void GeoSphere::Reset ( )
overridevirtual

Implements BaseSphere.

Here is the call graph for this function:

◆ Uninit()

void GeoSphere::Uninit ( )
static
Here is the call graph for this function:

◆ Update()

void GeoSphere::Update ( )
overridevirtual

Implements BaseSphere.

Here is the call graph for this function:

◆ UpdateAllGeoSpheres()

void GeoSphere::UpdateAllGeoSpheres ( )
static

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