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...

List of all members.

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.
bool Load (string[] filenames, double scale=1, IInfoProgressPanel progressPanel=null)
 Try to load an object file.
void LoadAsync (string[] filenames, double scale, IInfoProgressPanel progressPanel, LoadFinishedCallback callback)
 Try to load an object file.
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,
IModelMetadata
MetaRegistry = 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.
SceneChangedEvent SelectionChanged
 This event gets fired when one of the groups changes the selected property.
SceneChangedEvent MeshChanged
 This event gets fired if a mesh was modified in shape, position etc. So all viewers can redraw it.
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

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
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
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

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

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

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events