Go to the documentation of this file.
29 #ifndef __Ogre_Grid2DPageStrategy_H__
30 #define __Ogre_Grid2DPageStrategy_H__
142 void updateDerivedMetrics();
158 virtual void setOrigin(
const Vector3& worldOrigin);
162 virtual void setCellSize(
Real sz);
166 virtual void setLoadRadius(
Real sz);
170 virtual void setHoldRadius(
Real sz);
181 virtual void setCellRangeMinX(
int32 minX);
183 virtual void setCellRangeMinY(
int32 minY);
185 virtual void setCellRangeMaxX(
int32 maxX);
187 virtual void setCellRangeMaxY(
int32 maxY);
203 virtual void convertWorldToGridSpace(
const Vector3& world,
Vector2& grid);
205 virtual void convertGridToWorldSpace(
const Vector2& grid,
Vector3& world);
Page strategy which loads new pages based on a regular 2D grid.
@ G2D_X_Y
Grid is in the X/Y plane.
A viewpoint from which the scene will be rendered.
virtual int32 getCellRangeMinY() const
get the index range of all cells (values outside this will be ignored)
The PageManager is the entry point through which you load all PagedWorld instances,...
Abstract marker class representing the data held against the PagedWorldSection which is specifically ...
virtual int32 getCellRangeMaxX() const
get the index range of all cells (values outside this will be ignored)
Real mHoldRadius
Hold radius.
Class representing a node in the scene graph.
uint32 PageID
Identifier for a page.
Defines the interface to a strategy class which is responsible for deciding when Page instances are r...
virtual int32 getCellRangeMinX() const
get the index range of all cells (values outside this will be ignored)
static const uint16 CHUNK_VERSION
Vector2 mOrigin
Origin (grid-aligned world space)
virtual Real getCellSize() const
Get the size of the cells in the grid.
virtual const Vector3 & getOrigin(const Vector3 &worldOrigin)
Get the origin of the grid in world space.
@ G2D_X_Z
Grid is in the X/Z plane.
Grid2DMode
The 2D grid mode.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
virtual Real getHoldRadius() const
Get the Holding radius.
Utility class providing helper methods for reading / writing structured data held in a DataStream.
@ G2D_Y_Z
Grid is in the Y/Z plane.
Real mLoadRadius
Load radius.
virtual Real getLoadRadius() const
Get the loading radius.
virtual int32 getCellRangeMaxY() const
get the index range of all cells (values outside this will be ignored)
Standard 2-dimensional vector.
Specialisation of PageStrategyData for Grid2DPageStrategy.
Vector3 mWorldOrigin
Origin (world space)
float Real
Software floating point type.
Real mCellSize
Grid cell (page) size.
static const uint32 CHUNK_ID
Grid2DMode mMode
Orientation of the grid.
virtual Real getLoadRadiusInCells()
Get the load radius as a multiple of cells.
Standard 3-dimensional vector.
virtual Real getHoldRadiusInCells()
Get the Hold radius as a multiple of cells.
virtual Grid2DMode getMode() const
Set the grid alignment mode.
#define _OgrePagingExport
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15