Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CruncherProgressInfo Class Reference

This class provides information about computation progress to the different progress callback. More...

Detailed Description

This class provides information about computation progress to the different progress callback.

It is called during the different optimization steps giving a chance to provide some feedback to the user or to cancel the operation.

#include <PolygonCruncherInterface.h>

Public Types

enum  ProgressState {
  STATE_UNDEFINED = 0 , INIT_OPTIMIZATION = 1 , OPTIMIZE_NODE , INIT_MULTIRES_NODE ,
  MATERIAL_CHANGES , CREATEMR , MAGICCRUNCHER , BATCH_INFO ,
  BATCH_INFO_LOG_FAILS
}
 
enum  LogLevel { MACRO_RESULT_UNDEFINED = 0 , MACRO_RESULT_OK = 1 , MACRO_RESULT_WARNING = 2 , MACRO_RESULT_ERROR = 3 }
 
typedef enum CruncherProgressInfo::ProgressState ProgressState
 
typedef enum CruncherProgressInfo::LogLevel LogLevel
 

Public Member Functions

 CruncherProgressInfo (const CXString &txt, LogLevel logLevel, bool replaceLine, ProgressState state=BATCH_INFO)
 
int GetPos () const
 
int GetMin () const
 
int GetMax () const
 
const CXStringGetText () const
 
ProgressState GetState () const
 
LogLevel GetLogLevel () const
 
bool ReplaceLastLogLine () const
 
bool GetCancelState () const
 
xThreadID GetMainOptimizerThreadID () const
 

Public Attributes

bool userCancel
 
bool doubleBarMode
 
xThreadID mainThreadID
 
CXString txt
 
int curmesh
 
int meshnbr
 
int min
 
int max
 
int pos
 
ProgressState progressState
 
LogLevel logLevel
 
bool replaceLastLogLine
 

Member Enumeration Documentation

◆ ProgressState

CruncherProgressInfo::GetState returns optimization operation currently in progress;
This gives information about what the optimizer is doing.
You can set userCancel to true to stop the operation.


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