@@ -100,24 +100,56 @@ def SetOpacity(self, id, opacity):
100100 self .render ()
101101
102102 def SetColor (self , id , red , green , blue ):
103- reader = self .get_object (id )["reader" ]
104103 mapper = self .get_object (id )["mapper" ]
105104 mapper .ScalarVisibilityOff ()
106105 actor = self .get_object (id )["actor" ]
107106 actor .GetProperty ().SetColor ([red , green , blue ])
108107 self .render ()
109108
110- def SetEdgeVisibility (self , id , visibility ):
109+ def SetEdgesVisibility (self , id , visibility ):
111110 actor = self .get_object (id )["actor" ]
112111 actor .GetProperty ().SetEdgeVisibility (visibility )
113112 self .render ()
113+
114+ def SetEdgesSize (self , id , size ):
115+ actor = self .get_object (id )["actor" ]
116+ actor .GetProperty ().SetEdgeWidth (size )
117+ self .render ()
114118
115- def SetVertexVisibility (self , id , visibility ):
119+ def SetEdgesColor (self , id , color ):
120+ actor = self .get_object (id )["actor" ]
121+ actor .GetProperty ().SetEdgeColor (color )
122+ self .render ()
123+ def SetPointsVisibility (self , id , visibility ):
116124 actor = self .get_object (id )["actor" ]
117125 actor .GetProperty ().SetVertexVisibility (visibility )
126+ actor .GetProperty ().SetEdgeVisibility (visibility )
118127 self .render ()
119128
120- def SetPointSize (self , id , size ):
129+ def SetPointsSize (self , id , size ):
121130 actor = self .get_object (id )["actor" ]
122131 actor .GetProperty ().SetPointSize (size )
123- self .render ()
132+ self .render ()
133+
134+ def SetPointsColor (self , id , color ):
135+ actor = self .get_object (id )["actor" ]
136+ actor .GetProperty ().SetVertexColor (color )
137+ self .render ()
138+
139+ def SetPolygonsVisibility (self , id , visibility ):
140+ actor = self .get_object (id )["actor" ]
141+ actor .SetVisibility (visibility )
142+ self .render ()
143+
144+ def SetPolygonsColor (self , id , color ):
145+ actor = self .get_object (id )["actor" ]
146+ actor .GetProperty ().SetColor (color )
147+ self .render ()
148+
149+ def clearColors (self , id ):
150+ db = self .get_object (id )
151+ mapper = db ["mapper" ]
152+ reader = db ["reader" ]
153+ reader .GetOutput ().GetPointData ().SetActiveScalars ("" )
154+ reader .GetOutput ().GetCellData ().SetActiveScalars ("" )
155+ mapper .ScalarVisibilityOff ()
0 commit comments