OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer Class Reference
Inheritance diagram for OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer:
Collaboration graph
[legend]

Public Member Functions

void Initialise (IConfigSource config)
 This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created. More...
 
void Close ()
 This is the inverse to Initialise. After a Close(), this instance won't be usable anymore. More...
 
void AddRegion (Scene scene)
 This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called. More...
 
void RemoveRegion (Scene scene)
 This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed. More...
 
void RegionLoaded (Scene scene)
 This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module. More...
 
AMeshKey GetMeshUniqueKey (PrimitiveBaseShape primShape, Vector3 size, byte lod, bool convex)
 
IMesh CreateMesh (String primName, PrimitiveBaseShape primShape, Vector3 size, float lod)
 
IMesh CreateMesh (String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical)
 
IMesh CreateMesh (String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool shouldCache, bool convex, bool forOde)
 
IMesh GetMesh (String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex)
 
IMesh CreateMesh (String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex, bool forOde)
 
void ReleaseMesh (IMesh imesh)
 
void ExpireReleaseMeshs ()
 
void FileNames (AMeshKey key, out string dir, out string fullFileName)
 
string FullFileName (AMeshKey key)
 
void ExpireFileCache ()
 

Public Attributes

object diskLock = new object()
 
bool doMeshFileCache = true
 
string cachePath = "MeshCache"
 
TimeSpan CacheExpire
 
bool doCacheExpire = true
 

Properties

string Name [get]
 
Type ReplaceableInterface [get]
 
- Properties inherited from OpenSim.Region.Framework.Interfaces.IRegionModuleBase
string Name [get]
 
Type ReplaceableInterface [get]
 If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules. More...
 

Detailed Description

Definition at line 54 of file Meshmerizer.cs.

Member Function Documentation

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.AddRegion ( Scene  scene)
inline

This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called.

Parameters
sceneA Scene

Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.

Definition at line 147 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.Close ( )
inline

This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.

Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.

Definition at line 143 of file Meshmerizer.cs.

IMesh OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.CreateMesh ( String  primName,
PrimitiveBaseShape  primShape,
Vector3  size,
float  lod 
)
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1106 of file Meshmerizer.cs.

IMesh OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.CreateMesh ( String  primName,
PrimitiveBaseShape  primShape,
Vector3  size,
float  lod,
bool  isPhysical 
)
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1111 of file Meshmerizer.cs.

IMesh OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.CreateMesh ( String  primName,
PrimitiveBaseShape  primShape,
Vector3  size,
float  lod,
bool  isPhysical,
bool  shouldCache,
bool  convex,
bool  forOde 
)
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1116 of file Meshmerizer.cs.

IMesh OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.CreateMesh ( String  primName,
PrimitiveBaseShape  primShape,
Vector3  size,
float  lod,
bool  isPhysical,
bool  convex,
bool  forOde 
)
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1162 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.ExpireFileCache ( )
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1430 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.ExpireReleaseMeshs ( )
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1300 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.FileNames ( AMeshKey  key,
out string  dir,
out string  fullFileName 
)
inline

Definition at line 1329 of file Meshmerizer.cs.

string OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.FullFileName ( AMeshKey  key)
inline

Definition at line 1337 of file Meshmerizer.cs.

IMesh OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.GetMesh ( String  primName,
PrimitiveBaseShape  primShape,
Vector3  size,
float  lod,
bool  isPhysical,
bool  convex 
)
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1121 of file Meshmerizer.cs.

AMeshKey OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.GetMeshUniqueKey ( PrimitiveBaseShape  primShape,
Vector3  size,
byte  lod,
bool  convex 
)
inline

Definition at line 1021 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.Initialise ( IConfigSource  source)
inline

This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created.

Parameters
sourceA IConfigSource

Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.

Definition at line 92 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.RegionLoaded ( Scene  scene)
inline

This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module.

Parameters
sceneA Scene

Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.

Definition at line 163 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.ReleaseMesh ( IMesh  imesh)
inline

Implements OpenSim.Region.PhysicsModules.SharedBase.IMesher.

Definition at line 1269 of file Meshmerizer.cs.

void OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.RemoveRegion ( Scene  scene)
inline

This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed.

Parameters
sceneA Scene

Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.

Definition at line 155 of file Meshmerizer.cs.

Member Data Documentation

TimeSpan OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.CacheExpire

Definition at line 68 of file Meshmerizer.cs.

string OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.cachePath = "MeshCache"

Definition at line 67 of file Meshmerizer.cs.

object OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.diskLock = new object()

Definition at line 63 of file Meshmerizer.cs.

bool OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.doCacheExpire = true

Definition at line 69 of file Meshmerizer.cs.

bool OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.doMeshFileCache = true

Definition at line 65 of file Meshmerizer.cs.

Property Documentation

string OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.Name
get

Definition at line 83 of file Meshmerizer.cs.

Type OpenSim.Region.PhysicsModule.ubODEMeshing.ubMeshmerizer.ReplaceableInterface
get

Definition at line 88 of file Meshmerizer.cs.


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