public void VisibilityOn() { if (actor != null) { if (actor.GetVisibility() == 0) { actor.VisibilityOn(); } } }
public void VisibilityOff() { if (_lineActor != null) { if (_lineActor.GetVisibility() == 0) { } else { _lineActor.VisibilityOff(); } } }
public void SwitchVisibility() { if (actor != null) { if (actor.GetVisibility() == 0) { actor.VisibilityOn(); } else { actor.VisibilityOff(); } } }
private void ShowGrid(vtkObject sender, vtkObjectEventArgs e) { if (ClipPlaneActor.GetVisibility() == 1) { ClipPlaneActor.VisibilityOff(); Grid.GetTextActor().SetInput("Grid ON"); } else { ClipPlaneActor.VisibilityOn(); Grid.GetTextActor().SetInput("Grid OFF"); } Refresh(); }
/// <summary> /// Enable/Disable wireframe mode (0 - off, 1 - on) /// </summary> public void SetWireframe(int arg) { Actor.GetProperty().SetEdgeVisibility(arg); if (Actor.GetVisibility() == 1) { if (arg == 0) { Edges.VisibilityOn(); } else { Edges.VisibilityOff(); } } }