Repetier-Host Plugin  2.0.0
RepetierHostExtender.geom.TopoScene Class Reference

The scene is the top of the modeling structure. It holds groups which build individual models. A group contains of a number of models assigned to extruders. More...

Inheritance diagram for RepetierHostExtender.geom.TopoScene:

Public Member Functions

void NotifyPropertyChanged (String propertyName="")
 
void FireSceneChanged ()
 
void FireMeshChanged ()
 
void AddGroup (TopoGroup g)
 
TopoGroup NewGroup ()
 
void RemoveGroup (TopoGroup group)
 
void Clear ()
 
void AssignModelToGroup (TopoGroup g, TopoModel model, TopoGroup copyPosFrom=null)
 
void MoveSelectedGroups (double dx, double dy)
 
RHBoundingBox TotalBoundingBox ()
 
bool [] UsedExtruders ()
 
void RepairWindows (TopoModel m)
 
void SaveScene (string[] filenames, int slicerHint=0, int infillExtruder=-1)
 Saves the complete scene into one or more files. If only one filename is given, all models are merged into that file. If you provide a file array, each file will be stored with the content of that extruder matiching the position. More...
 
bool Load (string[] filenames, double scale=1, IInfoProgressPanel progressPanel=null)
 Try to load an object file. More...
 
void LoadAsync (string[] filenames, double scale, IInfoProgressPanel progressPanel, LoadFinishedCallback callback)
 Try to load an object file. More...
 
bool HaveFilesChangedOnDisk ()
 
void ResetChangedFileDate ()
 
void UpdateChangedFiles (IInfoProgressPanel progressPanel=null)
 
void Autoposition ()
 
void ForceRegenerateMesh ()
 

Static Public Member Functions

static void RegisterMeta (IModelMetadata m)
 

Public Attributes

bool AutosizeFailed = false
 

Static Public Attributes

static Dictionary< string, IModelMetadataMetaRegistry = new Dictionary<string, IModelMetadata>()
 

Properties

bool SupportRepair [get]
 
bool PropagateChanges [get, set]
 
BindingList< TopoGroupGroups [get]
 
bool CutFaces [get, set]
 
bool UpdateCuts [get, set]
 
int CutPosition [get, set]
 
int CutInclination [get, set]
 
int CutAzimuth [get, set]
 
int SelectedGroupsCount [get]
 
TopoGroup FirstSelectedGroup [get]
 

Events

SceneChangedEvent SceneChanged
 This even gets fired if new meshes were added or existing got removed or meshes got moved between groups. More...
 
SceneChangedEvent SelectionChanged
 This event gets fired when one of the groups changes the selected property. More...
 
SceneChangedEvent MeshChanged
 This event gets fired if a mesh was modified in shape, position etc. So all viewers can redraw it. More...
 
PropertyChangedEventHandler PropertyChanged
 

Detailed Description

The scene is the top of the modeling structure. It holds groups which build individual models. A group contains of a number of models assigned to extruders.

Member Function Documentation

◆ Load()

bool RepetierHostExtender.geom.TopoScene.Load ( string []  filenames,
double  scale = 1,
IInfoProgressPanel  progressPanel = null 
)

Try to load an object file.

Parameters
filenameFile to import
scaleScale object by this factor
Returns
true when loading was a success

◆ LoadAsync()

void RepetierHostExtender.geom.TopoScene.LoadAsync ( string []  filenames,
double  scale,
IInfoProgressPanel  progressPanel,
LoadFinishedCallback  callback 
)

Try to load an object file.

Parameters
filenameFile to import
scaleScale object by this factor
callbackCallback function gets called after loading is finished
Returns
true when loading was a success

◆ SaveScene()

void RepetierHostExtender.geom.TopoScene.SaveScene ( string []  filenames,
int  slicerHint = 0,
int  infillExtruder = -1 
)

Saves the complete scene into one or more files. If only one filename is given, all models are merged into that file. If you provide a file array, each file will be stored with the content of that extruder matiching the position.

Parameters
filenamesList of filenames to create
slicerHintHint for special tweaks. 1 = Slic3r, 2 = Slic3r not preserve positions

Event Documentation

◆ MeshChanged

SceneChangedEvent RepetierHostExtender.geom.TopoScene.MeshChanged

This event gets fired if a mesh was modified in shape, position etc. So all viewers can redraw it.

◆ SceneChanged

SceneChangedEvent RepetierHostExtender.geom.TopoScene.SceneChanged

This even gets fired if new meshes were added or existing got removed or meshes got moved between groups.

◆ SelectionChanged

SceneChangedEvent RepetierHostExtender.geom.TopoScene.SelectionChanged

This event gets fired when one of the groups changes the selected property.


The documentation for this class was generated from the following file:
About Us | Privacy Policy