shapeworks::MeshManager
Inherits from QObject
Public Slots
Name | |
---|---|
void | handle_thread_complete(const MeshWorkItem & item, MeshHandle mesh) |
void | handle_warper_progress() |
Public Signals
Name | |
---|---|
void | new_mesh() |
void | error_encountered(QString message) |
void | progress(int ) |
void | status(QString ) |
Public Functions
Name | |
---|---|
MeshManager(Preferences & prefs) | |
~MeshManager() | |
void | generate_mesh(const MeshWorkItem item) generate and cache a mesh for this shape in a different thread |
MeshHandle | get_mesh(const MeshWorkItem & item, bool wait =false) get a mesh for a MeshWorkItem |
MeshHandle | get_mesh(const Eigen::VectorXd & points, int domain) get a mesh for a set of points |
std::shared_ptr< SurfaceReconstructor > | get_surface_reconstructor(int domain) return the surface reconstructor for a given domain |
std::shared_ptr< MeshWarper > | get_mesh_warper(int domain) return the mesh warper for a given domain |
std::shared_ptr< MeshGenerator > | get_mesh_generator() return the mesh generator |
void | clear_cache() clear the cache |
Public Slots Documentation
slot handle_thread_complete
void handle_thread_complete(
const MeshWorkItem & item,
MeshHandle mesh
)
slot handle_warper_progress
void handle_warper_progress()
Public Signals Documentation
signal new_mesh
void new_mesh()
signal error_encountered
void error_encountered(
QString message
)
signal progress
void progress(
int
)
signal status
void status(
QString
)
Public Functions Documentation
function MeshManager
MeshManager(
Preferences & prefs
)
function ~MeshManager
~MeshManager()
function generate_mesh
void generate_mesh(
const MeshWorkItem item
)
generate and cache a mesh for this shape in a different thread
function get_mesh
MeshHandle get_mesh(
const MeshWorkItem & item,
bool wait =false
)
get a mesh for a MeshWorkItem
function get_mesh
MeshHandle get_mesh(
const Eigen::VectorXd & points,
int domain
)
get a mesh for a set of points
function get_surface_reconstructor
std::shared_ptr< SurfaceReconstructor > get_surface_reconstructor(
int domain
)
return the surface reconstructor for a given domain
function get_mesh_warper
std::shared_ptr< MeshWarper > get_mesh_warper(
int domain
)
return the mesh warper for a given domain
function get_mesh_generator
inline std::shared_ptr< MeshGenerator > get_mesh_generator()
return the mesh generator
function clear_cache
void clear_cache()
clear the cache
Updated on 2022-07-23 at 17:50:03 -0600