Skip to content

Commit e33a7fb

Browse files
author
natacha-beck
committed
[ADD] *.obj, *.sur, *.asc surface viewer
2 parents 9c2f117 + a705de3 commit e33a7fb

17 files changed

Lines changed: 932 additions & 796 deletions

userfiles/asc_file/asc_file.rb

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
#
3+
# CBRAIN Project
4+
#
5+
# Copyright (C) 2008-2026
6+
# The Royal Institution for the Advancement of Learning
7+
# McGill University
8+
#
9+
# This program is free software: you can redistribute it and/or modify
10+
# it under the terms of the GNU General Public License as published by
11+
# the Free Software Foundation, either version 3 of the License, or
12+
# (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU General Public License
20+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
#
22+
23+
# Model for a FreeSurfer ASCII 3D object file.
24+
class AscFile < SurfaceFile
25+
26+
Revision_info=CbrainFileRevision[__FILE__] #:nodoc:
27+
28+
def self.file_name_pattern #:nodoc:
29+
/\.asc$/i
30+
end
31+
32+
def self.pretty_type #:nodoc:
33+
"FreeSurfer ASCII"
34+
end
35+
36+
37+
# Return file format used by BrainBrowser
38+
def brainbrowser_file_format
39+
return "freesurferasc"
40+
end
41+
42+
end
43+

0 commit comments

Comments
 (0)