Inheritance diagram for ImageCreateNoise:


Public Member Functions | |
| char * | GetDescription () const |
| void | CreateFrame (uint8_t *pixels, int width, int height, double position, double frame_delta) |
| void | AttachWidgets (GtkBin *bin) |
| void | DetachWidgets (GtkBin *bin) |
| void | InterpretWidgets (GtkBin *bin) |
Definition at line 170 of file image_create.cc.
|
|
Reimplemented from ImageCreateColour. Definition at line 191 of file image_create.cc. References ImageCreateColour::AddFrameCollector(). 00192 {
00193 GtkWidget * table = gtk_table_new ( 2, 2, FALSE );
00194 gtk_table_set_row_spacings( GTK_TABLE( table ), 6 );
00195 gtk_table_set_col_spacings( GTK_TABLE( table ), 6 );
00196 AddFrameCollector( table, 0 );
00197 gtk_widget_show( table );
00198 gtk_container_add( GTK_CONTAINER( bin ), table );
00199 }
|
|
||||||||||||||||||||||||
|
Reimplemented from ImageCreateColour. Definition at line 178 of file image_create.cc. 00179 {
00180 uint8_t value;
00181 uint8_t *p = pixels;
00182 while ( p < ( pixels + width * height * 3 ) )
00183 {
00184 value = ( uint8_t ) ( 255.0 * rand() / ( RAND_MAX + 1.0 ) );
00185 *p ++ = value;
00186 *p ++ = value;
00187 *p ++ = value;
00188 }
00189 }
|
|
|
Reimplemented from ImageCreateColour. Definition at line 201 of file image_create.cc. References ImageCreateColour::InterpretFrameCollector(). 00202 {
00203 if ( bin->child != NULL )
00204 {
00205 InterpretFrameCollector( );
00206 gtk_container_remove( GTK_CONTAINER( bin ), bin->child );
00207 }
00208 }
|
|
|
Reimplemented from ImageCreateColour. Definition at line 173 of file image_create.cc. 00174 {
00175 return _( "Random noise" );
00176 }
|
|
|
Reimplemented from ImageCreateColour. Definition at line 210 of file image_create.cc. References ImageCreateColour::InterpretFrameCollector(). 00211 {
00212 if ( bin->child != NULL )
00213 InterpretFrameCollector( );
00214 }
|
1.4.2