#include "setHandleProperty.h"#include "SetProperty.h"#include "GetProperty.h"#include "getPropertyAssignedValue.h"#include "sciprint.h"Include dependency graph for CheckTicksProperty.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| AssignedList * | createTlistForTicks (void) |
| AssignedList* createTlistForTicks | ( | void | ) |
create a new assigne dlist which allow to easily retrieve the ticks properties from the stack. Moreover the functgion checked if the list contains the right properties.
Definition at line 12 of file CheckTicksProperty.c.
References createAssignedList(), getCurrentDoubleMatrixFromList(), getCurrentStringMatrixFromList(), isListCurrentElementDoubleMatrix(), isListCurrentElementEmptyMatrix(), isListCurrentElementStringMatrix(), NULL, rewindAssignedList(), and sciprint().
Referenced by set_x_ticks_property(), set_y_ticks_property(), and set_z_ticks_property().
00013 { 00014 AssignedList * tlist = NULL ; 00015 int nbRowLoc = 0 ; 00016 int nbColLoc = 0 ; 00017 int nbRowLab = 0 ; 00018 int nbColLab = 0 ; 00019 00020 tlist = createAssignedList( 3, 2 ) ; 00021 00022 if( !isListCurrentElementDoubleMatrix( tlist ) ) 00023 { 00024 sciprint("locations should be a vector of double.\n") ; 00025 return NULL ; 00026 } 00027 00028 getCurrentDoubleMatrixFromList( tlist, &nbRowLoc, &nbColLoc ) ; 00029 00030 if ( nbRowLoc * nbColLoc == 0 ) 00031 { 00032 /* labels should also be an empty matrix */ 00033 if ( !isListCurrentElementEmptyMatrix( tlist ) ) 00034 { 00035 sciprint( "Ticks location and label vectors must have the same size.\r\n" ) ; 00036 return NULL ; 00037 } 00038 } 00039 else 00040 { 00041 if ( !isListCurrentElementStringMatrix( tlist ) ) 00042 { 00043 sciprint("labels should be a string vector.\n") ; 00044 return NULL ; 00045 } 00046 00047 getCurrentStringMatrixFromList( tlist, &nbRowLab, &nbColLab ) ; 00048 00049 if ( nbRowLoc != nbRowLab || nbColLoc != nbColLab ) 00050 { 00051 sciprint( "Ticks location and label vectors must have the same size.\r\n" ) ; 00052 return NULL ; 00053 } 00054 } 00055 00056 rewindAssignedList( tlist ) ; 00057 00058 return tlist ; 00059 00060 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.5.1