~typically/modelgui/mgui-neuro

« back to all changes in this revision

Viewing changes to src/mgui/io/standard/gifti/GiftiSurfaceLoader.java

  • Committer: typically
  • Date: 2013-07-23 17:12:40 UTC
  • mfrom: (44.1.2 mgui-neuro)
  • Revision ID: typically-20130723171240-qupw1fcoplbpwino
Merge commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import mgui.geometry.util.GeometryFunctions;
29
29
import mgui.interfaces.InterfaceSession;
30
30
import mgui.interfaces.ProgressUpdater;
 
31
import mgui.interfaces.io.InterfaceIOType;
31
32
import mgui.interfaces.logs.LoggingType;
32
33
import mgui.interfaces.shapes.Mesh3DInt;
33
34
import mgui.io.InterfaceIOOptions;
63
64
        @Override
64
65
        public Mesh3DInt loadSurface(ProgressUpdater progress_bar, InterfaceIOOptions options) throws IOException{
65
66
                
66
 
                if (options == null){
67
 
                        InterfaceSession.log("GiftiSurfaceLoader: Options not set..");
68
 
                        return null;
69
 
                        }
70
 
                
71
67
                GiftiInputOptions _options = (GiftiInputOptions)options;
72
68
                
 
69
                if (_options == null){
 
70
                        InterfaceSession.log("GiftiSurfaceLoader: Options not set, using defaults.", LoggingType.Warnings);
 
71
                        _options = (GiftiInputOptions)this.getIOType().getOptionsInstance();
 
72
                        }
 
73
                
73
74
                if (dataFile == null){
74
75
                        InterfaceSession.log("GiftiSurfaceLoader: Input file not set..");
75
76
                        return null;
110
111
                        }
111
112
        
112
113
        }
 
114
        
 
115
        @Override
 
116
        public InterfaceIOType getWriterComplement(){
 
117
                return (new GiftiSurfaceWriter()).getIOType();
 
118
        }
113
119
 
114
120
}