--- /dev/null
+/*
+# bildFile.h : $Revision$
+# $Date$
+# Created by $Author$
+# Usage : bildFile.h
+# Attention
+# $Loccker$
+# $State$
+#
+*/
+/* $Log$ */
+#ifndef BILD_FILE_H
+#define BILD_FILE_H
+
+#include <stdio.h>
+#include "mrcImage.h"
+
+/* constant begin */
+typedef enum lmrc2bildMode {
+ lmrc2bildModeArrows=0
+} lmrc2bildMode;
+
+
+/* constant end */
+
+/* struct begin */
+typedef struct lmrc2bildInfo {
+ float zoom;
+ float color[3];
+ // For Arrow
+ float r1;
+ float r2;
+ float rho;
+} lmrc2bildInfo;
+
+/* struct end */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* prototype begin */
+
+extern void lmrc2bild(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode);
+extern void lmrc2bildArrows(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode);
+
+/* prototype end */
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif /* BILD_FILE_H */
--- /dev/null
+OBJECTNAME = bildFile
+EXTRA_INC =
+EXTRA_CCOPTS =
--- /dev/null
+include ../../../Config/Define.inc
+include ../../Config/Define.inc
+include ../Config/Define.inc
+include Config/Define.inc
+
+DIRS = src inc doc
+
+all:
+ for dir in ${DIRS} ; \
+ do \
+ $(CD) $${dir}; $(MAKE) all; $(CD) ..; \
+ done
+
+install:
+ for dir in ${DIRS}; \
+ do \
+ ${CD} $${dir} ; $(MAKE) install; $(CD) ..; \
+ done
+
+debug:
+ for dir in ${DIRS} ; \
+ do \
+ $(CD) $${dir}; $(MAKE) debug; $(CD) ..; \
+ done
+
+install-debug:
+ for dir in ${DIRS}; \
+ do \
+ ${CD} $${dir} ; $(MAKE) install-debug; $(CD) ..; \
+ done
+
+clean:
+ for dir in ${DIRS} ; \
+ do \
+ $(CD) $${dir}; $(MAKE) clean; $(CD) ..; \
+ done
+
+depend:
+ for dir in ${DIRS} ; \
+ do \
+ $(CD) $${dir}; $(MAKE) depend; $(CD) ..; \
+ done
+
+put:
+ for dir in ${DIRS} ; \
+ do \
+ $(CD) $${dir}; $(MAKE) put; $(CD) ..; \
+ done
+
+check:
+ @cd src; \
+ if [ ! -d $(EOS_HOME)/hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE) ] ; then \
+ echo making directory; \
+ mkdir -p $(EOS_HOME)/hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE); \
+ fi
+ ln -sf ../../../../../hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE) src/$(OSTYPE);
+ @$(RM) -f src/Makefile
+ @$(RM) -f inc/Makefile
+ @$(RM) -f doc/Makefile
+ @$(CP) ../../../Config/Template/$(WORLDNAME)Template.Dir/src/Makefile src/Makefile
+ @$(CP) ../../../Config/Template/$(WORLDNAME)Template.Dir/inc/Makefile inc/Makefile
+ @$(CP) ../../../Config/Template/$(WORLDNAME)Template.Dir/doc/Makefile doc/Makefile
+ @rm -f src/.Depend src/.Source
+ @touch src/$(OSTYPE)/.Depend
+ @touch src/$(OSTYPE)/.Source
+ @touch src/.CCHeader
+ @touch src/.CHeader
+ @touch src/.Wish
+ @touch src/.Ruby
+ @cd inc; make install
+ @cd src; make install-ascii
+
+#
+# CVS
+#
+cvsupdate::
+ cvs -d $(EOS_CVSROOT) update -d
+
+cvscommit::
+ cvs -d $(EOS_CVSROOT) commit -R
+
+#
+# Backup
+#
+backup:
+ @cd ../../../.. ; \
+ echo $(OBJECTNAME) ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Makefile ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]*; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.*; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]*
+
+backup-all:
+ @cd ../../../.. ; \
+ echo $(OBJECTNAME) ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]*; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.*; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]*
+
+#
+# Distribution
+#
+distribute:
+ @cd ../../../.. ; \
+ echo $(OBJECTNAME) ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]*; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.*; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]* ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE)
+
+distribute-all:
+ @cd ../../../.. ; \
+ echo $(OBJECTNAME) ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]*; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.*; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]* ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE)
+
+include Config/Target.inc
+
--- /dev/null
+include ../../../../Config/Define.inc
+include ../../../Config/Define.inc
+include ../../Config/Define.inc
+include ../Config/Define.inc
+
+SOURCEDOC = $(OBJECTNAME).html
+DOCDSTDIR = $(EOS_HOME)/doc/Objects
+TARGETDOC = $(DOCDSTDIR)/$(SOURCEDOC)
+
+all: $(SOURCEDOC)
+
+install : $(TARGETDOC)
+
+$(TARGETDOC):$(SOURCEDOC)
+ $(INSTALL) -m 444 *.html $(DOCDSTDIR)
+ @cd $(DOCDSTDIR); make
+
+$(SOURCEDOC) : .$(SOURCEDOC) .header .footer ../inc/$(OBJECTNAME).h Makefile ../src/*.c
+ @echo Creating $(OBJECTNAME).html
+ @cat .header > $(SOURCEDOC)
+ @#htmlUpdateTime >> $(SOURCEDOC)
+ @cat .$(SOURCEDOC) >> $(SOURCEDOC)
+ @echo \<HR\> >> $(SOURCEDOC)
+ @echo "<A NAME=\"Information\">" >> $(SOURCEDOC)
+ @echo "<H2>Information from source codes</H2>" >> $(SOURCEDOC)
+ @echo "</A>" >> $(SOURCEDOC)
+ @echo "<PRE>" >> $(SOURCEDOC)
+ -@ident ../src/*.c >> $(SOURCEDOC)
+ @echo "</PRE>" >> $(SOURCEDOC)
+ @echo \<HR\> >> $(SOURCEDOC)
+ @echo \<A NAME=\"include\"\>>> $(SOURCEDOC)
+ @echo "<H2>$(OBJECTNAME).h</H2>">> $(SOURCEDOC)
+ @echo \</A\> >>$(SOURCEDOC)
+ @echo \<PRE\> >> $(SOURCEDOC)
+ @cat ../inc/$(OBJECTNAME).h >> $(SOURCEDOC)
+ @echo \</PRE\> >> $(SOURCEDOC)
+ @cat .footer >> $(SOURCEDOC)
+
+clean:
+
+depend:
--- /dev/null
+<HR>
+<A NAME="Information">
+<H2>Information from source codes</H2>
+</A>
+<PRE>
+</PRE>
+<HR>
+<A NAME="include">
+<H2>bildFile.h</H2>
+</A>
+<PRE>
+/*
+# bildFile.h : $Revision$
+# $Date$
+# Created by $Author$
+# Usage : bildFile.h
+# Attention
+# $Loccker$
+# $State$
+#
+*/
+/* $Log$ */
+#ifndef BILD_FILE_H
+#define BILD_FILE_H
+
+#include <stdio.h>
+#include "mrcImage.h"
+
+/* constant begin */
+typedef enum lmrc2bildMode {
+ lmrc2bildModeArrows=0
+} lmrc2bildMode;
+
+
+/* constant end */
+
+/* struct begin */
+typedef struct lmrc2bildInfo {
+ float zoom;
+ float color[3];
+ // For Arrow
+ float r1;
+ float r2;
+ float rho;
+} lmrc2bildInfo;
+
+/* struct end */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* prototype begin */
+
+extern void lmrc2bild(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode);
+extern void lmrc2bildArrows(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode);
+
+/* prototype end */
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif /* BILD_FILE_H */
+</PRE>
--- /dev/null
+include ../../../../Config/Define.inc
+include ../../../Config/Define.inc
+include ../../Config/Define.inc
+include ../Config/Define.inc
+
+INCFILE = $(OBJECTNAME).h
+
+all:
+
+install:$(EOS_HOME)/include/$(INCFILE)
+
+$(EOS_HOME)/include/$(INCFILE):$(INCFILE)
+ if [ ! -d $(EOS_HOME)/include ] ; then \
+ mkdir $(EOS_HOME)/include ; \
+ fi
+ $(INSTALL) -m 444 $(INCFILE) $(EOS_HOME)/include/
+
+clean:
+ $(RM) -f *.bak
+
+depend:
+ $(RM) -f *.bak
+
+cvsupdate::
+ cvs -d $(EOS_CVSROOT) update
+
+cvscommit::
+ @echo "cvs -d $(EOS_CVSROOT) commit"
+
+cvsadd::
+ @echo "cvs -d $(EOS_CVSROOT) add"
--- /dev/null
+/*
+# bildFile.h : $Revision$
+# $Date$
+# Created by $Author$
+# Usage : bildFile.h
+# Attention
+# $Loccker$
+# $State$
+#
+*/
+/* $Log$ */
+#ifndef BILD_FILE_H
+#define BILD_FILE_H
+
+#include <stdio.h>
+#include "mrcImage.h"
+
+/* constant begin */
+typedef enum lmrc2bildMode {
+ lmrc2bildModeArrows=0
+} lmrc2bildMode;
+
+
+/* constant end */
+
+/* struct begin */
+typedef struct lmrc2bildInfo {
+ float zoom;
+ float color[3];
+ // For Arrow
+ float r1;
+ float r2;
+ float rho;
+} lmrc2bildInfo;
+
+/* struct end */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* prototype begin */
+
+extern void lmrc2bild(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode);
+extern void lmrc2bildArrows(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode);
+
+/* prototype end */
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif /* BILD_FILE_H */
--- /dev/null
+CCHeader = \
+
--- /dev/null
+CHeader = \
+
--- /dev/null
+Ruby = \
+
--- /dev/null
+Wish = \
+
--- /dev/null
+SHELL=/bin/ksh
+include ../Config/Define.inc
+include ../../Config/Define.inc
+include ../../../Config/Define.inc
+include ../../../../Config/Define.inc
+
+include $(OSTYPE)/.Source
+include .CHeader
+include .CCHeader
+include .Wish
+include .Ruby
+
+LIBNAME=lib$(OBJECTNAME).a
+SHAREDLIB=lib$(OBJECTNAME).so
+LIBNAMEDEBUG=lib$(OBJECTNAME).debug.a
+
+DSTDIR=../../../../../lib/$(OSTYPE)/
+SOURCE=$(OSTYPE)/.Source
+ARCHTEMPLATEDIR=$(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH
+
+all: hostdepend static-lib shared-lib ruby-lib debug
+ @echo LIBNAME:$(LIBNAME)
+ @echo OBJECTNAME:$(OBJECTNAME)
+
+hostdepend:
+ @if [ ! -L $(OSTYPE) ] ; then \
+ moveHostdependent ; \
+ fi
+
+debug: debug-lib
+
+static-lib::
+ @echo static-lib:LIBNAME:$(LIBNAME) ; \
+ $(RM) -f $(OSTYPE)/Makefile; \
+ $(CP) $(ARCHTEMPLATEDIR)/Makefile $(OSTYPE)/Makefile ; \
+ cd $(OSTYPE); \
+ $(MAKE) $(LIBNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME) WORLDNAME=$(WORLDNAME)
+
+shared-lib::
+ @echo shared-lib:LIBNAME:$(LIBNAME) ; \
+ $(RM) -f $(OSTYPE)/Makefile; \
+ $(CP) $(ARCHTEMPLATEDIR)/Makefile $(OSTYPE)/Makefile ; \
+ cd $(OSTYPE); \
+ $(MAKE) $(SHAREDLIB) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME) WORLDNAME=$(WORLDNAME)
+
+ruby-lib::
+ @if [ -d Swig ]; then \
+ echo "--- Swig ---"; \
+ cd Swig; \
+ if [ -f extconf.rb ] ; then \
+ swig -ruby -I/usr/include -I$(EOS_HOME)/include *.i ; \
+ ruby extconf.rb --with-Eos-include=$(EOS_HOME)/include --with-Eos-lib=$(EOS_HOME)/lib/$(OSTYPE) --with-opt-lib=$LD_LIBRARY_PATH --with-opt-lib=$(EOS_HOME)/util/$(OSTYPE)/lib --with-GL-lib=/usr/lib ; \
+ make ; \
+ make sitearchdir=$(EOS_HOME)/lib/$(OSTYPE) install; \
+ fi ; \
+ fi
+
+debug-lib::
+ @cd $(OSTYPE); \
+ $(RM) -f Makefile; \
+ $(CP) $(ARCHTEMPLATEDIR)/Makefile Makefile ; \
+ $(MAKE) $(LIBNAMEDEBUG) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME) WORLDNAME=$(WORLDNAME)
+
+clean:
+ rm -f *.[oa] *.debugo *.cudagdbo *.so *.sharedo *.linkinfo $(OSTYPE)/*.[ao] $(OSTYPE)/*.debugo $(OSTYPE)/*.cudagdbo $(OSTYPE)/*.linkinfo *.bak core $(OSTYPE)/*.sharedo $(OSTYPE)/*.so
+
+Makefile:
+ touch .Source
+ touch .CHeader
+ touch .CCHeader
+
+install: all install-static install-shared install-ascii
+ @echo "Installation has completed: $(LIBNAME)"
+
+install-static: $(DSTDIR)/$(LIBNAME)
+install-shared: $(DSTDIR)/$(SHAREDLIB)
+
+install-debug: debug $(DSTDIR)/$(LIBNAMEDEBUG) install-ascii
+ @echo "Installation has completed: $(LIBNAMEDEBUG)"
+
+install-ascii: h hh wish ruby
+
+h:
+ @if [ -n "$(CHeader)" ] ; \
+ then\
+ echo "C Header Install" ; \
+ for file in $(CHeader) dummy ; \
+ do \
+ if [ -f $${file} ] ; \
+ then\
+ echo $${file}; $(INSTALL) -m 444 $${file} $(DSTDIR)/../../include ; \
+ fi;\
+ done; \
+ fi
+
+hh:
+ @if [ -n "$(CCHeader)" ] ; \
+ then \
+ echo "C++ Header Install" ; \
+ for file in $(CCHeader) dummy ; \
+ do \
+ if [ -f $${file} ] ; \
+ then\
+ echo $${file}; $(INSTALL) -m 444 $${file} $(DSTDIR)/../../include ; \
+ fi;\
+ done; \
+ fi
+
+wish:
+ @if [ -n "$(Wish)" ] ; \
+ then \
+ echo "Wish Install" ; \
+ for file in $(Wish) dummy ; \
+ do \
+ if [ -f $${file} ] ; \
+ then\
+ echo $${file}; $(INSTALL) -m 444 $${file} $(DSTDIR)/../../lib ; \
+ fi;\
+ done; \
+ fi
+
+ruby:
+ @if [ -n "$(Ruby)" ] ; \
+ then \
+ echo "Ruby Install" ; \
+ for file in $(Ruby) dummy ; \
+ do \
+ if [ -f $${file} ] ; \
+ then\
+ echo $${file}; $(INSTALL) -m 444 $${file} $(DSTDIR)/../../lib ; \
+ fi;\
+ done; \
+ fi
+
+put:
+ @Files=`ls -l | grep $${USER} | grep rw | grep -e "\.c" ` ;\
+ for file in $${Files} dummy; \
+ do \
+ if [ -w $${file} ] ; \
+ then\
+ echo $${file}; sccsPut $${file} ; \
+ fi;\
+ done
+
+$(DSTDIR)/$(LIBNAME): static-lib
+ @echo Installing lib: $(LIBNAME)
+ @if [ ! -d $(DSTDIR) ] ; then mkdir $(DSTDIR) ; fi
+ @cd $(OSTYPE); $(INSTALL) -m 444 $(LIBNAME) ../$(DSTDIR)
+ @echo LIBNAME:$(LIBNAME)
+ @echo Link EosObjects
+ @OBJLIST=`ls $(OSTYPE)/*.o `;\
+ echo $${OBJLIST} | sed -f ../../../../Config/o2nl.sed > .tmp1 ; \
+ echo $(REALOBJ) | sed -f ../../../../Config/o2nl.sed > .tmp2 ; \
+ echo "#### Attention Uncompiled file ####";\
+ comm -13 .tmp1 .tmp2 ; \
+ echo "########";\
+ echo $(AR) r $(DSTDIR)/libEosObjects.a $${OBJLIST} ; \
+ $(AR) r $(DSTDIR)/libEosObjects.a $${OBJLIST}; \
+ echo $(AR) s $(DSTDIR)/libEosObjects.a ; \
+ $(AR) s $(DSTDIR)/libEosObjects.a \
+ chmod 660 $(DSTDIR)/libEosObjects.a
+ @rm .tmp1 .tmp2
+
+$(DSTDIR)/$(LIBNAMEDEBUG): debug
+ @echo Installing lib: $(LIBNAMEDEBUG)
+ @if [ ! -d $(DSTDIR) ] ; then mkdir $(DSTDIR) ; fi
+ @cd $(OSTYPE); $(INSTALL) -m 444 $(LIBNAMEDEBUG) ../$(DSTDIR)
+ @echo LIBNAME:$(LIBNAMEDEBUG)
+ @echo Link EosObjects
+ @OBJLISTDEBUG=`ls $(OSTYPE)/*.debugo `;\
+ echo $${OBJLISTDEBUG} | sed -f ../../../../Config/o2nl.sed > .tmp1 ; \
+ echo $(REALOBJDEBUG) | sed -f ../../../../Config/o2nl.sed > .tmp2 ; \
+ echo "#### Attention Uncompiled file ####";\
+ comm -13 .tmp1 .tmp2 ; \
+ echo "########";\
+ echo $(AR) r $(DSTDIR)/libEosObjects.debug.a $${OBJLISTDEBUG} ; \
+ $(AR) r $(DSTDIR)/libEosObjects.debug.a $${OBJLISTDEBUG};
+ echo $(AR) s $(DSTDIR)/libEosObjects.debug.a ; \
+ $(AR) s $(DSTDIR)/libEosObjects.debug.a
+ chmod 660 $(DSTDIR)/libEosObjects.debug.a
+ @rm .tmp1 .tmp2
+
+$(DSTDIR)/$(SHAREDLIB): shared-lib
+ @echo Installing lib: $(SHAREDLIB)
+ @if [ ! -d $(DSTDIR) ] ; then mkdir $(DSTDIR) ; fi
+ @cd $(OSTYPE); $(INSTALL) -m 444 $(SHAREDLIB) ../$(DSTDIR)
+ @echo LIBNAME:$(SHAREDLIB)
+ @echo Link EosObjects
+ @OBJLIST=`ls $(OSTYPE)/*.sharedo `;\
+ echo $${OBJLIST} | sed -f ../../../../Config/o2nl.sed > .tmp1 ; \
+ echo $(REALSHAREDOBJ) | sed -f ../../../../Config/o2nl.sed > .tmp2 ; \
+ echo "#### Attention Uncompiled file ####";\
+ comm -13 .tmp1 .tmp2 ; \
+ echo "########"; \
+ if [ ! -d $(DSTDIR)/shared ] ; then \
+ mkdir $(DSTDIR)/shared; \
+ fi; \
+ $(CP) $${OBJLIST} $(DSTDIR)/shared ; \
+ echo "$(CP) $${OBJLIST} $(DSTDIR)/shared" ; \
+ $(SHARED) $(DSTDIR)/libEosObjects.so $(DSTDIR)/shared/*.sharedo ; \
+ echo "$(SHARED) $(DSTDIR)/libEosObjects.so $(DSTDIR)/shared/*.sharedo" ; \
+ chmod 660 $(DSTDIR)/libEosObjects.so
+ @rm .tmp1 .tmp2
+
+install-all:
+ @cd .. ; $(MAKE) install
+
+install-ruby: ruby-lib
+ cd $(OSTYPE); $(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(SHAREDLIB) $(RUBYSHAREDLIB)/$(SHAREDLIB)
+
+depend:
+ @echo dependency checking now
+ @echo $(OSTYPE)
+ @echo SRC = \\ > $(SOURCE)
+ @ls -1 *.c | sed -e "s/\.c/.c \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/\.cc/.cc \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/\.ccm/.ccm \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/\.idl/.idl \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/\.cu/.cu \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @#
+ @echo OBJ = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/\.c/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/\.cc/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/\.ccm/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/\.idl/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/\.cu/.o \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @#
+ @echo SHAREDOBJ = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/\.c/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/\.cc/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/\.ccm/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/\.idl/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/\.cu/.sharedo \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @#
+ @echo REALOBJ = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.c/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cc/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.ccm/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.idl/.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cu/.o \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @echo REALSHAREDOBJ = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.c/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cc/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.ccm/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.idl/.sharedo \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cu/.sharedo \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @echo OBJDEBUG = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/\.c/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/\.cc/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/\.ccm/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/\.idl/.debugo \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @#
+ @echo REALOBJDEBUG = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.c/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cc/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.ccm | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.ccm/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.idl | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.idl/.debugo \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cu/.debugo \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @echo OBJCUDAGDB = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/\.c/.cudagdb.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/\.cc/.cudagdb.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/\.cu/.cudagdb.o \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @#
+ @echo REALOBJCUDAGDB = \\ >> $(SOURCE)
+ @ls -1 *.c | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.c/.cudagdb.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cc | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cc/.cudagdb.o \\\\/" >> $(SOURCE)
+ @ls -1 *.cu | sed -e "s/^/\$(OSTYPE)\//" -e "s/\.cu/.cudagdb.o \\\\/" >> $(SOURCE)
+ @echo >> $(SOURCE)
+ @#
+ @echo >> $(SOURCE)
+ @echo CCHeader = \\ > .CCHeader
+ @ls -1 *.hh | sed -e "s/\.hh/.hh \\\\/" >> .CCHeader
+ @echo >> .CCHeader
+ @#
+ @echo CHeader = \\ > .CHeader
+ @ls -1 *.h | sed -e "s/\.h/.h \\\\/" >> .CHeader
+ @echo >> .CHeader
+ @#
+ @echo Wish = \\ > .Wish
+ @ls -1 *.wish | sed -e "s/\.wish/.wish \\\\/" >> .Wish
+ @echo >> .Wish
+ @#
+ @echo Ruby = \\ > .Ruby
+ @ls -1 *.rb | sed -e "s/\.rb/.rb \\\\/" >> .Ruby
+ @echo >> .Ruby
+ @#
+ @ls -1 *.c *.cc *.ccm | \
+ awk -vHostType=$(OSTYPE) -f$(EOS_HOME)/sbin/awk/objectdependency.awk > $(OSTYPE)/.Depend
+ @#
+ @$(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(KHOROS_INCS) *.c *.cc *.ccm >> $(OSTYPE)/.Depend
+ @for file in $(SRC) dummy ; \
+ do \
+ if [ -f $${file} ] ; \
+ then \
+ echo $${file} ; \
+ ln -sf ../$${file} $(OSTYPE)/$${file}; \
+ fi ;\
+ done
+
+#
+#
+#
+test::
+ @if [ -d test ] ; then \
+ cd test; \
+ $(MAKE); \
+ else \
+ echo "No test directory: making test"; \
+ mkdir test; \
+ cd test; \
+ touch Makefile; \
+ fi
+
+#
+# cvs
+#
+cvsupdate::
+ cvs -d $(EOS_CVSROOT) update -d
+
+cvslogin::
+ cvs -d $(EOS_CVSROOT) login
+
+cvscommit::
+ @echo "cvs -d $(EOS_CVSROOT) commit -m @"message@" filename"
+
+cvsadd::
+ @echo "cvs -d $(EOS_CVSROOT) add filename|dirname"
+ @echo "Need Commit for filename"
+ @echo "make cvscommit"
+
+cvsremove::
+ @echo "cvs -d $(EOS_CVSROOT) remove filename"
+ @echo "Need Commit for filename"
+ @echo "make cvscommit"
+
+include $(OSTYPE)/.Depend
+include ../Config/Target.inc
--- /dev/null
+../../../../../hostdepend/X86MAC64/src/Objects/DataManip/bildFile/src/X86MAC64
\ No newline at end of file
--- /dev/null
+/*
+# %M% %Y% %I%
+# The latest update : %G% at %U%
+#
+#%Z% lmrc2bild ver %I%
+#%Z% Created by
+#%Z%
+#%Z% Usage : lmrc2bild
+#%Z% Attention
+#%Z%
+*/
+static char __sccs_id[] = "%Z%lmrc2bild ver%I%; Date:%D% %Z%";
+
+#include "../inc/bildFile.h"
+
+void
+lmrc2bildUsage(FILE* fpt)
+{
+ fprintf(fpt, "%d: Arrows\n", lmrc2bildModeArrows);
+
+}
+
+void
+lmrc2bild(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode)
+{
+ switch(mode) {
+ case lmrc2bildModeArrows: {
+ lmrc2bildArrows(fpt, in, linfo, mode);
+ break;
+ }
+ }
+}
+
+
+void
+lmrc2bildArrows(FILE* fpt, mrcImage* in, lmrc2bildInfo linfo, int mode)
+{
+ mrcImageParaTypeReal x, y, z;
+ mrcImageParaTypeReal startx, starty, startz;
+ mrcImageParaTypeReal endx, endy, endz;
+ double d0, d1, d2;
+
+ fprintf(fpt, ".color %g %g %g", linfo.color[0], linfo.color[1], linfo.color[2]);
+ for(z=0; z<in[0].HeaderN.z; z++) {
+ for(y=0; y<in[0].HeaderN.y; y++) {
+ for(x=0; x<in[0].HeaderN.x; x++) {
+ mrcPixelDataGet(&in[0], x, y, z, &d0, mrcPixelRePart, mrcPixelHowNearest);
+ mrcPixelDataGet(&in[1], x, y, z, &d1, mrcPixelRePart, mrcPixelHowNearest);
+ mrcPixelDataGet(&in[2], x, y, z, &d2, mrcPixelRePart, mrcPixelHowNearest);
+ if(d0==0 && d1==1 && d2==0) {
+ } else {
+ startx = (x+in[0].HeaderStartN.x)*in[0].HeaderLength.x;
+ starty = (y+in[0].HeaderStartN.y)*in[0].HeaderLength.y;
+ startz = (z+in[0].HeaderStartN.z)*in[0].HeaderLength.z;
+ endx = startx + d0*in[0].HeaderLength.x*linfo.zoom;
+ endy = starty + d1*in[1].HeaderLength.y*linfo.zoom;
+ endz = startz + d2*in[2].HeaderLength.z*linfo.zoom;
+ fprintf(fpt, ".arrow %g %g %g %g %g %g %g %g %g\n", startx, starty, startz,
+ endx, endy, endz,
+ linfo.r1, linfo.r2, linfo.rho);
+ }
+ }
+ }
+ }
+}
WORLDNAME=Tools
WORLDNAME=Tools
WORLDNAME=Tools
+WORLDNAME=Tools
+WORLDNAME=Tools
+WORLDNAME=Tools
+WORLDNAME=Tools
+WORLDNAME=Tools
+WORLDNAME=Tools
imodst2mrc \
ip2mrc \
moi2mrc \
+mrc2bild \
mrc2fld \
mrc2gif \
mrc2lattice \
--- /dev/null
+OBJECTNAME = mrc2bild
+EXTRA_LIB =
+EXTRA_CCOPTS =
+EXTRA_INC =
--- /dev/null
+# OptionControlFile
+# FileFormat
+"-i","-i[nput]","Input:mrcImagex3","Essential","3","1","In0","inFile::mrcImage","NULL","2","In1","inFile::mrcImage","NULL","3","In2","inFile::mrcImage","NULL"
+"-o","-o[utput]","OutputDataFile","Essential","1","1","Out","outFile::BILD","stdout"
+"-c","-c[onfig]","ConfigurationFile","Optional","1","1","configFile","inFile","NULL"
+"-m","-m[ode]","Mode","Optional","1","1","mode","Integer","0"
--- /dev/null
+include ../../../Config/Define.inc
+include ../../Config/Define.inc
+include ../Config/Define.inc
+include Config/Define.inc
+
+all:
+ cd src; make all; cd ..
+
+install:
+ cd src; make install; cd ..
+
+
+putSF:
+ if [ -f private ] ; \
+ then \
+ echo "$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME) is private"; \
+ else \
+ cvs -z4 -d:ext:$$USER@$$EOS_SOURCEFORGE commit || cvs -z4 -d:ext:$$USER@$$EOS_SOURCEFORGE import src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME); \
+ fi
+
+put:
+ cd src; make put; cd ..
+
+clean:
+ cd src; make clean; cd ..
+
+depend:
+ cd src; make depend; cd ..
+
+check:
+ @if [ ! -d $(EOS_HOME)/hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE) ] ; then \
+ echo making directory; \
+ mkdir -p $(EOS_HOME)/hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE); \
+ fi
+ ln -sf ../../../../../hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE) src/$(OSTYPE);
+ @$(RM) src/Makefile
+ @echo "New src/Makefile"
+ @$(CP) ../../../Config/Template/$(WORLDNAME)Template.Dir/src/Makefile src/Makefile
+ @cd src; touch $(OSTYPE)/.Depend; make depend
+
+update:
+ @if [ ! -d $(EOS_HOME)/hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE) ] ; then \
+ echo making directory; \
+ mkdir -p $(EOS_HOME)/hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE); \
+ fi
+ ln -sf ../../../../../hostdepend/$(OSTYPE)/src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE) src/$(OSTYPE);
+ @$(RM) src/Makefile
+ @echo "New src/Makefile"
+ @$(CP) ../../../Config/Template/$(WORLDNAME)Template.Dir/src/Makefile src/Makefile
+ @cd src; touch $(OSTYPE)/.Depend; echo "Y" | make update
+
+cvsupdate::
+ cvs -d $(EOS_CVSROOT) update -d
+
+cvscommit::
+ cvs -d $(EOS_CVSROOT) commit
+
+backup:
+ @cd ../../../..; \
+ echo $(OBJECTNAME) ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Makefile ;\
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]* ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/wish; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.[A-z]*; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]*; \
+ tar uvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/Makefile
+
+backup-all:
+ @cd ../../../..; \
+ echo $(OBJECTNAME) ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Makefile ;\
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]* ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/wish; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.[A-z]*; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]*; \
+ tar rvf ${EOS_HOME}/backup/EosBase.tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/Makefile
+
+distribute:
+ cd ../../../..; \
+ echo $(OBJECTNAME) ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Makefile ;\
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]* ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/wish; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.[A-z]*; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]*; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/Makefile ; \
+ tar uvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE)
+
+distribute-all:
+ @cd ../../../..; \
+ echo $(OBJECTNAME) ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Config ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/Makefile ;\
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/.[A-z]* ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/inc ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/doc; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/wish; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/[A-z]*.[A-z]*; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/.[A-z]*; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/Makefile ; \
+ tar rvf ${EOS_HOME}/distribute/src.$(OSTYPE).tar src/$(WORLDNAME)/$(CLASSNAME)/$(OBJECTNAME)/src/$(OSTYPE)
+
+eosintroduce:
+ ${EOS_HOME}/sbin/eosintroduce ${WORLDNAME} ${CLASSNAME} ${OBJECTNAME} ./
+
+include Config/Target.inc
--- /dev/null
+install:
+ cd ../src; make install-doc; cd ../doc
--- /dev/null
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#include "../inc/mrc2bild.h"
+
+#endif /* CONFIG_H */
--- /dev/null
+#ifndef MRC2BILD_H
+#define MRC2BILD_H
+#include <stdio.h>
+#include <stdlib.h>
+
+#define OPTION_FLAG '-'
+#define OPTION_FLAG_POS (0)
+#define OPTION_POS (1)
+
+
+
+
+typedef struct mrc2bildInfo {
+ long flagRedirect;
+
+ long flagIn0;
+ char* In0;
+ FILE* fptIn0;
+
+ long flagIn1;
+ char* In1;
+ FILE* fptIn1;
+
+ long flagIn2;
+ char* In2;
+ FILE* fptIn2;
+
+ long flagOut;
+ char* Out;
+ FILE* fptOut;
+
+ long flagconfigFile;
+ char* configFile;
+ FILE* fptconfigFile;
+
+ long flagmode;
+ long mode;
+
+} mrc2bildInfo;
+#ifdef __cplusplus
+extern "C" {
+#endif
+extern void argCheck(mrc2bildInfo* info, int argc, char* avgv[]);
+extern void khorosInit(int argc, char* avgv[]);
+extern void init0(mrc2bildInfo* info);
+extern void init1(mrc2bildInfo* info);
+extern void usage(char* usage);
+extern void additionalUsage(void);
+extern void htmlBeforeUsage(char* usage);
+extern void htmlAfterUsage(char* usage);
+#ifdef __cplusplus
+};
+#endif
+#endif /* MRC2BILD_H */
--- /dev/null
+include ../Config/Define.inc
+include ../../Config/Define.inc
+include ../../../Config/Define.inc
+include ../../../../Config/Define.inc
+
+EOSHOME=../../../../../
+DSTDIR=$(EOSHOME)/bin
+DSTDOC=$(EOSHOME)/doc
+DSTTAR=$(EOSHOME)/tar
+
+INCFILES =
+
+LIBFILES = \
+ $(LIBPREFIX)EosObjects$(LIBSUFFIX)
+
+LIBFILESDEBUG = \
+ $(LIBPREFIX)EosObjects.debug$(LIBSUFFIX)
+
+SRCC = \
+ $(OBJECTNAME).c \
+ init.c \
+ argCheck.c \
+ usage.c \
+ util.c \
+
+SRCCXX = \
+ $(OBJECTNAME).cc \
+ init.cc \
+ argCheck.cc \
+ usage.cc \
+ util.cc \
+
+MODULES = \
+ $(OBJECTNAME).o \
+ init.o \
+ argCheck.o \
+ usage.o \
+ util.o \
+
+REALMODULES = \
+ $(OSTYPE)/$(OBJECTNAME).o \
+ $(OSTYPE)/init.o \
+ $(OSTYPE)/argCheck.o \
+ $(OSTYPE)/usage.o \
+ $(OSTYPE)/util.o
+
+MODULESDEBUG = \
+ $(OBJECTNAME).debugo \
+ init.debugo \
+ argCheck.debugo \
+ usage.debugo \
+ util.debugo \
+
+REALMODULESDEBUG = \
+ $(OSTYPE)/$(OBJECTNAME).debugo \
+ $(OSTYPE)/init.debugo \
+ $(OSTYPE)/argCheck.debugo \
+ $(OSTYPE)/usage.debugo \
+ $(OSTYPE)/util.debugo
+
+
+all: $(OSTYPE)/$(OBJECTNAME)
+ if [ ! -L $(OSTYPE) ] ; then \
+ moveHostdependent; \
+ fi
+
+debug: $(OSTYPE)/$(OBJECTNAME).debug
+
+cudagdb: $(OSTYPE)/$(OBJECTNAME).cudagdb
+
+
+$(OSTYPE)/$(OBJECTNAME)::
+ @$(RM) -f $(OSTYPE)/Makefile ; \
+ $(CP) $(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile $(OSTYPE)/Makefile ; \
+ cd $(OSTYPE); \
+ $(MAKE) $(OBJECTNAME) WORLDNAME=$(WORLDNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME)
+
+$(OSTYPE)/$(OBJECTNAME).debug::
+ @$(RM) -f $(OSTYPE)/Makefile ; \
+ $(CP) $(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile $(OSTYPE)/Makefile ; \
+ cd $(OSTYPE); \
+ $(MAKE) $(OBJECTNAME).debug WORLDNAME=$(WORLDNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME)
+
+$(OSTYPE)/$(OBJECTNAME).cudagdb::
+ @$(RM) -f $(OSTYPE)/Makefile ; \
+ $(CP) $(EOS_HOME)/src/Config/Template/$(WORLDNAME)Template.Dir/src/ARCH/Makefile $(OSTYPE)/Makefile ; \
+ cd $(OSTYPE); \
+ $(MAKE) $(OBJECTNAME).cudagdb WORLDNAME=$(WORLDNAME) CLASSNAME=$(CLASSNAME) OBJECTNAME=$(OBJECTNAME)
+
+cvsupdate::
+ cvs -d $(EOS_CVSROOT) update -d
+
+cvscommit::
+ cvs -d $(EOS_CVSROOT) commit
+
+edit:
+ @if [ -r $(OBJECTNAME).c ]; \
+ then \
+ sccsEdit $(OBJECTNAME).c; \
+ else \
+ echo "Source files are already editable"; \
+ fi
+ @if [ -r wish/$(OBJECTNAME).wish ]; \
+ then \
+ cd wish; sccsEdit $(OBJECTNAME).wish; \
+ else \
+ echo "Source files (wish) are already editable."; \
+ fi
+ @if [ -r ruby/$(OBJECTNAME).rb ]; \
+ then \
+ cd ruby; sccsEdit $(OBJECTNAME).rb; \
+ else \
+ echo "Source files (ruby) are already editable."; \
+ fi
+ @if [ -r perl/$(OBJECTNAME).pl ]; \
+ then \
+ cd perl; sccsEdit $(OBJECTNAME).pl ; \
+ else \
+ echo "Source files (perl) are already editable."; \
+ fi
+ @if [ -r ../Config/OptionControlFile ]; \
+ then \
+ cd ../Config; sccsEdit OptionControlFile; \
+ else \
+ echo "OptionControlFile are already editable."; \
+ fi
+
+unedit:
+ @if [ -w $(OBJECTNAME).c ]; \
+ then \
+ sccsUnedit $(OBJECTNAME).c; \
+ else \
+ echo "Source files are not editable"; \
+ fi
+ @if [ -w wish/$(OBJECTNAME).wish ]; \
+ then \
+ cd wish; sccsUnedit $(OBJECTNAME).wish; \
+ else \
+ echo "Source files (wish) are not editable."; \
+ fi
+ @if [ -w ruby/$(OBJECTNAME).rb]; \
+ then \
+ cd ruby; sccsUnedit $(OBJECTNAME).rb; \
+ else \
+ echo "Source files (ruby) are not editable."; \
+ fi
+ @if [ -w perl/$(OBJECTNAME).pl ]; \
+ then \
+ cd perl; sccsUnedit $(OBJECTNAME).pl ; \
+ else \
+ echo "Source files (ruby) are not editable."; \
+ fi
+ @if [ -w ../Config/OptionControlFile ]; \
+ then \
+ cd ../Config; sccsUnedit OptionControlFile; \
+ else \
+ echo "OptionControlFile are not editable."; \
+ fi
+
+report:
+ @if [ -r $(OBJECTNAME).c ]; \
+ then \
+ sccsReport $(OBJECTNAME).c; \
+ else \
+ echo "Source files are already editable"; \
+ fi
+ @if [ -r wish/$(OBJECTNAME).wish ]; \
+ then \
+ cd wish; sccsReport $(OBJECTNAME).wish; \
+ else \
+ echo "Source files (wish) are already editable."; \
+ fi
+ @if [ -r ruby/$(OBJECTNAME).rb ]; \
+ then \
+ cd ruby; sccsReport $(OBJECTNAME).rb; \
+ else \
+ echo "Source files (ruby) are already editable."; \
+ fi
+ @if [ -r perl/$(OBJECTNAME).pl ] ; \
+ then \
+ cd perl; sccsReport $(OBJECTNAME).pl ; \
+ else \
+ echo "Source files (perl) are already editable."; \
+ fi
+ @if [ -r ../Config/OptionControlFile ]; \
+ then \
+ cd ../Config; sccsReport OptionControlFile; \
+ else \
+ echo "OptionControlFile are already editable."; \
+ fi
+
+clean :
+ rm -f *.debugo $(OSTYPE)/*.debugo *.cudagdbo $(OSTYPE)/*.cudagdbo *.o $(OSTYPE)/*.o *.linkinfo $(OSTYPE)/*.linkinfo \
+ $(OSTYPE)/$(OBJECTNAME) $(OSTYPE)/*.$(OSTYPE) \
+ $(OSTYPE)/$(OBJECTNAME).debug $(OSTYPE)/*.$(OSTYPE).debug \
+ $(OSTYPE)/$(OBJECTNAME).cudagdb $(OSTYPE)/*.$(OSTYPE).cudagdb \
+ $(OSTYPE)/$(OBJECTNAME).linkinfo $(OSTYPE)/*.$(OSTYPE).linkinfo \
+ *.bak *.$(OSTYPE) core
+
+install: install-bin install-doc install-wish install-ruby install-shell install-perl
+ @if [ dummy$(KHOROS_KENGOBJ) != dummy ] ; \
+ then \
+ if [ -x $(KHOROS_KGENOBJ) ] ; \
+ then \
+ make install-khoros ; \
+ fi; \
+ fi
+
+install-bin:$(DSTDIR)/$(OSTYPE)/$(OBJECTNAME)
+
+$(DSTDIR)/$(OSTYPE)/$(OBJECTNAME):$(OSTYPE)/$(OBJECTNAME) $(DSTDIR)/$(OBJECTNAME)
+ @echo ---- Installing to bin
+ @echo $(DSTDIR)/$(OSTYPE)/$(OBJECTNAME)
+ @if [ ! -d $(DSTDIR)/$(OSTYPE) ]; \
+ then \
+ mkdir $(DSTDIR)/$(OSTYPE); \
+ fi
+ @if [ -x $(OSTYPE)/$(OBJECTNAME) ]; \
+ then \
+ echo "Compilation is complete"; \
+ $(RM) -f $(DSTDIR)/$(OSTYPE)/$(OBJECTNAME); \
+ $(CD) $(OSTYPE); $(INSTALL) -m 555 $(OBJECTNAME) ../$(DSTDIR)/$(OSTYPE); \
+ $(CHMOD) 555 ../$(DSTDIR)/$(OSTYPE)/$(OBJECTNAME); \
+ else \
+ echo "Compilation is incomplete. $(OBJECTNAME)"; \
+ fi
+ @echo ---- end of bin
+
+install-wish:
+ @if [ -d wish ]; \
+ then \
+ echo "---- Tcl/Tk file Install"; \
+ if [ ! -d $(DSTDIR)/wish/$(OBJECTNAME) ]; \
+ then \
+ mkdir $(DSTDIR)/wish/$(OBJECTNAME) ; \
+ fi ; \
+ $(CP) -f wish/* $(DSTDIR)/wish/$(OBJECTNAME); \
+ $(CHMOD) 555 $(DSTDIR)/wish/$(OBJECTNAME)/* ;\
+ touch $(DSTDIR)/wish/$(OBJECTNAME)/tclIndex;\
+ $(CHMOD) 666 $(DSTDIR)/wish/$(OBJECTNAME)/tclIndex;\
+ echo "---- Tcl/Tk file Installed";\
+ fi
+
+install-ruby:
+ @if [ -d ruby ]; \
+ then \
+ echo "---- Ruby/Tk file Install"; \
+ if [ ! -d $(DSTDIR)/ruby/$(OBJECTNAME) ]; \
+ then \
+ mkdir $(DSTDIR)/ruby/$(OBJECTNAME) ; \
+ fi ; \
+ $(CP) -f ruby/* $(DSTDIR)/ruby/$(OBJECTNAME); \
+ $(CHMOD) 555 $(DSTDIR)/ruby/$(OBJECTNAME)/* ; \
+ echo "---- Ruby/Tk file Installed"; \
+ fi
+
+install-perl:
+ @if [ -d perl ]; \
+ then \
+ echo "---- Perl/Tk file Install"; \
+ if [ ! -d $(DSTDIR)/perl/$(OBJECTNAME) ]; \
+ then \
+ mkdir $(DSTDIR)/perl/$(OBJECTNAME) ; \
+ fi; \
+ $(CP) -f perl/* $(DSTDIR)/perl/$(OBJECTNAME); \
+ $(CHMOD) 555 $(DSTDIR)/perl/$(OBJECTNAME)/* ; \
+ echo "---- Perl/Tk file Installed"; \
+ fi
+
+install-shell:
+ @if [ ! -d $(DSTDIR)/shell/$(OBJECTNAME) ]; \
+ then \
+ mkdir $(DSTDIR)/shell/$(OBJECTNAME) ; \
+ fi
+ @if [ -d shell ]; \
+ then \
+ echo "---- Shell file Install"; \
+ if [ ! -d $(DSTDIR)/shell/$(OBJECTNAME) ]; \
+ then \
+ mkdir $(DSTDIR)/shell/$(OBJECTNAME) ; \
+ fi ; \
+ $(CP) -f shell/* $(DSTDIR)/shell/$(OBJECTNAME); \
+ $(CHMOD) 555 $(DSTDIR)/shell/$(OBJECTNAME)/*; \
+ echo "---- Shell file Installed"; \
+ fi
+
+install-khoros:
+ @echo Installing to khoros
+ @if [ ! -d ../../../../../objects/script/$(OBJECTNAME) -a -f $(KHOROS_KGENOBJ) ]; \
+ then \
+ echo kgenobj;\
+ $(KHOROS_KGENOBJ) -tb Eos -oname $(OBJECTNAME) -type script -pane -cantata true -cat Eos -subcat $(CLASSNAME) -description $(OBJECTNAME) -bname $(OBJECTNAME) -form -lang ksh ; \
+ fi
+ @if [ ! -d ../../../../../objects/script/$(OBJECTNAME) -a -f $(KHOROS_KSET) ]; \
+ then \
+ $(KHOROS_KSET) -tb Eos -oname $(OBJECTNAME) -icon $(OBJECTNAME) ; \
+ fi
+ @if [ -d ../../../../../objects/script/$(OBJECTNAME) -a -f $(KHOROS_KSET) ]; \
+ then \
+ $(CHMOD) -R 775 ../../../../../objects/script/$(OBJECTNAME) ; \
+ if [ $? ] ; \
+ then \
+ echo "-- setting khoros ---" ; \
+ if [ -d ../../../../../objects/script/$(OBJECTNAME)/uis/ ] ; \
+ then \
+ $(CD) ../../../../../objects/script/$(OBJECTNAME)/uis/ ; \
+ $(RM) -f $(OBJECTNAME).pane ; \
+ $(LN) -s ../../../../src/Tools/$(CLASSNAME)/$(OBJECTNAME)/src/$(OBJECTNAME).pane $(OBJECTNAME).pane; \
+ $(CD) ../../ ; \
+ $(CHMOD) -R 555 $(OBJECTNAME); \
+ else \
+ echo "../../../../../objects/script/$(OBJECTNAME)/uis/ does not exist."; \
+ fi ; \
+ else \
+ echo "Failed !!: Cannot chage mode in installing $(OBJECTNAME) to khoros system"; \
+ fi ; \
+ echo "-- end of khoros-installing"; \
+ fi
+
+install-doc: html
+ @if [ ! -d $(DSTDOC)/SmallTools ]; \
+ then \
+ mkdir $(DSTDOC)/SmallTools ;\
+ fi
+ @if [ -f $(DSTDOC)/SmallTools/$(OBJECTNAME).html ]; \
+ then \
+ $(RM) -f $(DSTDOC)/SmallTools/$(OBJECTNAME).html ;\
+ fi
+ @$(CP) $(OBJECTNAME).html $(DSTDOC)/SmallTools/$(OBJECTNAME).html
+ @$(CHMOD) 444 $(DSTDOC)/SmallTools/$(OBJECTNAME).html
+ @if [ -f ../doc/*.html ]; \
+ then \
+ $(CP) ../doc/*.html $(DSTDOC)/SmallTools/ ;\
+ fi
+ @$(CHMOD) 444 $(DSTDOC)/SmallTools/$(OBJECTNAME).html
+ @if [ -f $(DSTDOC)/SmallTools/Makefile ]; \
+ then \
+ cd $(DSTDOC)/SmallTools; $(MAKE); \
+ fi
+
+html: $(OBJECTNAME).html
+
+configFileRead:
+ @ctrl2configFileRead $(CLASSNAME) $(OBJECTNAME) ../Config/OptionControlFile
+
+$(OBJECTNAME).html: $(OSTYPE)/$(OBJECTNAME)
+ @echo creating html
+ @$(OSTYPE)/$(OBJECTNAME) -html 2> $(OBJECTNAME).html.tmp
+ @sed -e s/$(OSTYPE)\\/// $(OBJECTNAME).html.tmp > $(OBJECTNAME).html
+ @$(RM) $(OBJECTNAME).html.tmp
+
+$(DSTDIR)/$(OBJECTNAME): $(OSTYPE)/$(OBJECTNAME)
+ @ln -s -f ../sbin/MachineIndependent $@
+
+depend::
+ @echo dependency checking now
+ @if [ ! -L $(OSTYPE) ] ; then \
+ moveHostdependent; \
+ fi
+ rm -f $(OSTYPE)/.Depend
+ #echo C
+ @if [ -f $(OBJECTNAME).c ] ; \
+ then \
+ echo "dependency: *.c"; \
+ echo $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) *.c ; \
+ $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) *.c >> $(OSTYPE)/.Depend ; \
+ fi
+ #echo CC
+ @if [ -f $(OBJECTNAME).cc ] ; \
+ then \
+ echo "dependency: *.cc"; \
+ echo $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(EXTRA_CCOPTS) *.cc ; \
+ $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(EXTRA_CCOPTS) *.cc >> $(OSTYPE)/.Depend ; \
+ fi
+ @if [ -f $(OBJECTNAME).ccm ] ; \
+ then \
+ echo "dependency: *.ccm"; \
+ echo $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(EXTRA_CCOPTS) *.ccm ; \
+ $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(EXTRA_CCOPTS) *.ccm >> $(OSTYPE)/.Depend ; \
+ fi
+ @if [ -f $(OBJECTNAME).cu ] ; \
+ then \
+ echo "dependency: *.cu"; \
+ echo $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(EXTRA_CCOPTS) *.cu ; \
+ $(DEPENDCOMMAND) $(INCLUDEDIR) $(EXTRA_INC) $(EXTRA_DEFINE) $(EXTRA_CCOPTS) *.cu >> $(OSTYPE)/.Depend ; \
+ fi
+
+update:../Config/OptionControlFile
+ maketool $(CLASSNAME) $(OBJECTNAME) update
+
+changeName::
+
+Test:$(OSTYPE)/$(OBJECTNAME) TestDir
+ @if [ -f test/Makefile ] ; \
+ then \
+ cd test; make ; \
+ else \
+ echo "No test Makefile"; \
+ fi
+
+TestDir::
+ @if [ ! -d test ] ; \
+ then \
+ echo "Creating test dir"; \
+ mkdir test; \
+ fi
+ @if [ ! -f test/Makefile ] ; \
+ then \
+ echo "Creating Makefile"; \
+ cd test; \
+ protoTestMakefileCreate; \
+ fi
+ @if [ ! -d test/data ]; \
+ then \
+ mkdir $(EOSHOME)/data/$(OBJECTNAME); \
+ cd test; \
+ ln -sf ../$(EOSHOME)/data/$(OBJECTNAME) data; \
+ fi
+
+tar::
+ cd $(DSTTAR); tar cvf Tools.$(CLASSNAME).$(OBJECTNAME).tar ../bin/$(OBJECTNAME) \
+ ../bin/*/$(OBJECTNAME).* \
+ ../src/Tools/$(CLASSNAME)/$(OBJECTNAME) \
+ ; gzip Tools.$(CLASSNAME).$(OBJECTNAME).tar
+
+-include $(OSTYPE)/.Depend
+-include ../Config/Target.inc
--- /dev/null
+../../../../../hostdepend/X86MAC64/src/Tools/filter/mrc2bild/src/X86MAC64
\ No newline at end of file
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include "../inc/config.h"
+#include "genUtil.h"
+#include "String.h"
+#include "File.h"
+#include "Memory.h"
+
+
+void
+argCheck(mrc2bildInfo* info, int argc, char* argv[])
+{
+ long i;
+ char s[1024];
+ FILE* fpt;
+
+ if(NULL==(fpt=fopen(".EosLog", "a+"))) {
+
+ } else {
+ for(i=0; i<argc; i++) {
+ fprintf(fpt, "%s ", argv[i]);
+ }
+ fprintf(fpt, "\n");
+ fclose(fpt);
+ }
+ for(i=1; i<argc; i++) {
+ if(OPTION_FLAG==argv[i][OPTION_FLAG_POS]) {
+ SSWITCH(argv[i]+OPTION_POS)
+ SCASE("i") {
+ if(i+3<argc) {
+ info->In0 = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagIn0++;
+ info->In1 = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagIn1++;
+ info->In2 = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagIn2++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("o") {
+ if(i+1<argc) {
+ info->Out = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagOut++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("c") {
+ if(i+1<argc) {
+ info->configFile = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagconfigFile++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("m") {
+ if(i+1<argc) {
+ info->mode = stringGetNthIntegerData(argv[i+1], 1, " ,");
+ i++;
+ info->flagmode++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("h") {
+ usage(argv[0]);
+ exit(EXIT_SUCCESS);
+ break;
+ }
+ SCASE("html") {
+ htmlBeforeUsage(argv[0]);
+ usage(argv[0]);
+ htmlAfterUsage(argv[0]);
+ exit(EXIT_SUCCESS);
+ break;
+ }
+ SDEFAULT {
+ fprintf(stderr, "Not Supported Options: :%s\n", argv[i]);
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ break;
+ }
+ SSWITCHEND;
+ }
+ }
+}
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include "../inc/config.h"
+#include "genUtil.h"
+#include "String.h"
+#include "File.h"
+#include "Memory.h"
+
+
+void
+init0(mrc2bildInfo* info)
+{
+ info->fptIn0 = NULL; info->flagIn0 = 0;
+ info->fptIn1 = NULL; info->flagIn1 = 0;
+ info->fptIn2 = NULL; info->flagIn2 = 0;
+ info->fptOut = stdout; info->flagOut = 0;
+ info->fptconfigFile = NULL; info->flagconfigFile = 0;
+ info->mode = 0; info->flagmode = 0;
+}
+
+void
+init1(mrc2bildInfo* info)
+{
+ char s[1024];
+ int i;
+ if(!info->flagIn0) {
+ stringGetFromFile(s, "In0", stdin, stdout, 0);
+ info->In0 = stringGetNthWord(s, 1, " ,\t");
+ info->flagIn0++;
+ }
+ if(info->flagIn0) {
+ info->fptIn0 = fileOpen(info->In0, "r");
+ }
+
+ if(!info->flagIn1) {
+ stringGetFromFile(s, "In1", stdin, stdout, 0);
+ info->In1 = stringGetNthWord(s, 1, " ,\t");
+ info->flagIn1++;
+ }
+ if(info->flagIn1) {
+ info->fptIn1 = fileOpen(info->In1, "r");
+ }
+
+ if(!info->flagIn2) {
+ stringGetFromFile(s, "In2", stdin, stdout, 0);
+ info->In2 = stringGetNthWord(s, 1, " ,\t");
+ info->flagIn2++;
+ }
+ if(info->flagIn2) {
+ info->fptIn2 = fileOpen(info->In2, "r");
+ }
+
+ if(!info->flagOut) {
+ stringGetFromFile(s, "Out", stdin, stdout, 0);
+ info->Out = stringGetNthWord(s, 1, " ,\t");
+ info->flagOut++;
+ }
+ if(info->flagOut) {
+ info->fptOut = fileOpen(info->Out, "w");
+ }
+
+ if(info->flagconfigFile) {
+ info->fptconfigFile = fileOpen(info->configFile, "r");
+ }
+
+ if(info->flagmode) {
+ }
+
+}
+#ifdef KHOROS
+#include <stdio.h>
+#include "bootstrap.h"
+#include "dataserv.h"
+#include "datamanip.h"
+extern void func_usage_additions(void);
+extern void func_free_args(kexit_status status, kaddr client_data);
+extern void func_get_args(kform* pane);
+
+void
+func_usage_additions(void)
+{
+}
+void
+func_free_args(kexit_status status, kaddr client_data)
+{
+}
+void
+func_get_args(kform* pane)
+{
+}
+void
+khorosInit(int argc, char* argv[])
+{
+ char* eospath;
+ char panepath[1024];
+ FILE* fpt;
+
+ eospath = getenv("EOS_HOME");
+ sprintf(panepath, "%s/src/Tools/filter/mrc2bild/src/mrc2bild.pane", eospath);
+ khoros_initialize(argc, argv, "EOS");
+ fpt = fopen(panepath, "r"); if(NULL!=fpt) {
+ fclose(fpt);
+ kclui_initialize(panepath, KGEN_NONE, "EOS", "mrc2bild",
+ func_usage_additions,
+ func_get_args,
+ func_free_args);
+ }
+}
+#endif /* KHOROS */
--- /dev/null
+/*
+# mrc2bild : $Revision$
+# $Date$
+# Created by $Author$
+# Usage : mrc2bild
+# Attention
+# $Loccker$
+# $State$
+#
+*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#define GLOBAL_DECLARATION
+#include "../inc/config.h"
+
+#define DEBUG
+#include "genUtil.h"
+#include "mrcImage.h"
+#include "bildFile.h"
+
+int
+main(int argc, char* argv[])
+{
+ mrc2bildInfo info;
+ mrcImage in[3];
+ lmrc2bildInfo linfo;
+
+ init0(&info);
+ argCheck(&info, argc, argv);
+ init1(&info);
+
+ DEBUGPRINT("Program Start\n");
+
+ mrcFileRead(&in[0], info.In0, "in main", 0);
+ mrcFileRead(&in[1], info.In1, "in main", 0);
+ mrcFileRead(&in[2], info.In2, "in main", 0);
+
+ lmrc2bild(info.fptOut, in, linfo, info.mode);
+
+ exit(EXIT_SUCCESS);
+}
+
+void
+additionalUsage()
+{
+ fprintf(stderr, "----- Additional Usage -----\n");
+}
+
+
--- /dev/null
+-F 4.3 1 0 52x1+0+0 +0+0 'Cantata' cantata
+ -M 1 1 52x1+0+0 +1+0 ' ' subform
+ -P 1 0 52x1+0+1 +0+0 ' ' mrc2bild
+ -D 1 0 9x1+0+0 'Options' _gui_options
+ -H 1 6x1+0+0 'License' 'license' $BOOTSTRAP/repos/license/License license
+ -E
+ -R 1 0 1 5x1+35+0 'Run' 'execute operation' $EOS/bin/mrc2bild
+ -H 1 5x1+41+0 'Help' 'help page' $EOS/src/Tools/filter/mrc2bild/doc/mrc2bild.doc help
+ -Q 1 0 5.25x1+47+0 'Close'
+ -I 1 0 1 1 0 1 -1x1+1+1 ' ' 'NULL' 'In0' Input:mrcImagex3
+ -O 1 0 1 1 0 1 -1x1+1+3.000000 ' ' 'Out' 'OutputDataFile' o
+ -I 1 0 1 0 0 1 -1x1+1+4.500000 ' ' 'configFile' 'ConfigurationFile' c
+ -i 1 0 1 0 0 -1x1+1+6.000000 0 0 0 0 0 'mode' 'Mode' m
+ -E
+ -E
+-E
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include "../inc/config.h"
+
+void
+usage(char* thisProgram)
+{
+ fprintf(stderr, "Usage: %s\n", thisProgram);
+ fprintf(stderr, "Options:\n");
+ fprintf(stderr, " [-i[nput] In0 (NULL ).as(inFile::mrcImage ) \n In1 (NULL ).as(inFile::mrcImage ) \n In2 (NULL ).as(inFile::mrcImage ) ] :Essential :Input:mrcImagex3\n");
+ fprintf(stderr, " [-o[utput] Out (stdout ).as(outFile::BILD ) ] :Essential :OutputDataFile\n");
+ fprintf(stderr, " [-c[onfig] configFile (NULL ).as(inFile ) ] :Optional :ConfigurationFile\n");
+ fprintf(stderr, " [-m[ode] mode (0 ).as(Integer ) ] :Optional :Mode\n");
+ additionalUsage();
+}
+
+void
+htmlBeforeUsage(char* thisProgram)
+{
+ fprintf(stderr, "<HTML>\n");
+ fprintf(stderr, "<HEAD>\n");
+ fprintf(stderr, "<TITLE>%s</TITLE>\n", thisProgram);
+ fprintf(stderr, "</HEAD>\n");
+ fprintf(stderr, "<BODY>\n");
+ fprintf(stderr, "<H1>%s</H1>\n", thisProgram);
+ fprintf(stderr, "<H2>Usage</H2>\n");
+ fprintf(stderr, "<PRE>\n");
+}
+
+void
+htmlAfterUsage(char* thisProgram)
+{
+ fprintf(stderr, "</PRE>\n");
+ fprintf(stderr, "</BODY>\n");
+ fprintf(stderr, "</HTML>\n");
+}
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include "../inc/config.h"
+
"-n","-n[Cube]","Mode","Optional","1","1","nCube","Integer","0"
"-r","-r[adius]","Radius[pixel]","Optional","3","1","minR","Integer","3","2","maxR","Integer","5","3","delR","Integer","1"
"-l","-l[ength]","Length[pixel]","Optional","3","1","minL","Integer","3","2","maxL","Integer","5","3","delL","Integer","1"
-"-OVBILD","-O[utput]V[ector]BILD","Output:BILD-vector","Optional","1","1","OutVectorBILD","outFile::BILD","NULL"
"-Phi","-Phi","around z-axis[degree]","Optional","3","1","minPhi","Real","0.0","2","maxPhi","Real","359.0","3","delPhi","Real","45.0"
"-Theta","-Theta","around x-axis[degree]","Optional","3","1","minTheta","Real","0.0","2","maxTheta","Real","359.0","3","delTheta","Real","45.0"
"-Psi","-Psi","around x-axis[degree]","Optional","3","1","minPsi","Real","0.0","2","maxPsi","Real","350.0","3","delPsi","Real","45.0"
"-thres","-thres[Zscore]","Zscore","Optional","1","1","thresZscore","Real","1.0"
"-interp","-interp[olationMode]","interpMode","Optional","1","1","interpMode","Integer","0"
+"-OVBILD","-O[utput]V[ector]BILD","Output:BILD-vector","Optional","1","1","OutVectorBILD","outFile::BILD","NULL"
+"-arrow","-arrow[Shape]","ArrowShape","Optional","3","1","ArrowR1","Real","0.1","2","ArrowR2","Real","0.4","3","ArrowRho","Real","0.75"
+"-zoom","-zoom[Vector]","Zoom","Optional","1","1","ZoomVector","Real","1.0"
+"-arrowColorDisk","-arrowColorDisk","ArrowColorDisk","Optional","3","1","ArrowColorDisk0","Real","0.0","2","ArrowColorDisk1","Real","1.0","3","ArrowColorDisk2","Real","0.0"
+"-arrowColorSylinder","-arrowColorSylinder","ArrowColorSylinder","Optional","3","1","ArrowColorSylinder0","Real","1.0","2","ArrowColorSylinder1","Real","0.0","3","ArrowColorSylinder2","Real","0.0"
"-c","-c[onfig]","ConfigurationFile","Optional","1","1","configFile","inFile","NULL"
"-m","-m[ode]","Mode","Optional","1","1","mode","Integer","0"
long flagdelL;
long delL;
- long flagOutVectorBILD;
- char* OutVectorBILD;
- FILE* fptOutVectorBILD;
-
long flagminPhi;
float minPhi;
long flaginterpMode;
long interpMode;
+ long flagOutVectorBILD;
+ char* OutVectorBILD;
+ FILE* fptOutVectorBILD;
+
+ long flagArrowR1;
+ float ArrowR1;
+
+ long flagArrowR2;
+ float ArrowR2;
+
+ long flagArrowRho;
+ float ArrowRho;
+
+ long flagZoomVector;
+ float ZoomVector;
+
+ long flagArrowColorDisk0;
+ float ArrowColorDisk0;
+
+ long flagArrowColorDisk1;
+ float ArrowColorDisk1;
+
+ long flagArrowColorDisk2;
+ float ArrowColorDisk2;
+
+ long flagArrowColorSylinder0;
+ float ArrowColorSylinder0;
+
+ long flagArrowColorSylinder1;
+ float ArrowColorSylinder1;
+
+ long flagArrowColorSylinder2;
+ float ArrowColorSylinder2;
+
long flagconfigFile;
char* configFile;
FILE* fptconfigFile;
}
SBREAK;
}
- SCASE("OVBILD") {
- if(i+1<argc) {
- info->OutVectorBILD = stringGetNthWord(argv[i+1], 1, " ,");
- i++;
- info->flagOutVectorBILD++;
- } else {
- usage(argv[0]);
- exit(EXIT_FAILURE);
- }
- SBREAK;
- }
SCASE("Phi") {
if(i+3<argc) {
info->minPhi = stringGetNthRealData(argv[i+1], 1, " ,");
}
SBREAK;
}
+ SCASE("OVBILD") {
+ if(i+1<argc) {
+ info->OutVectorBILD = stringGetNthWord(argv[i+1], 1, " ,");
+ i++;
+ info->flagOutVectorBILD++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("arrow") {
+ if(i+3<argc) {
+ info->ArrowR1 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowR1++;
+ info->ArrowR2 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowR2++;
+ info->ArrowRho = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowRho++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("zoom") {
+ if(i+1<argc) {
+ info->ZoomVector = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagZoomVector++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("arrowColorDisk") {
+ if(i+3<argc) {
+ info->ArrowColorDisk0 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowColorDisk0++;
+ info->ArrowColorDisk1 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowColorDisk1++;
+ info->ArrowColorDisk2 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowColorDisk2++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
+ SCASE("arrowColorSylinder") {
+ if(i+3<argc) {
+ info->ArrowColorSylinder0 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowColorSylinder0++;
+ info->ArrowColorSylinder1 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowColorSylinder1++;
+ info->ArrowColorSylinder2 = stringGetNthRealData(argv[i+1], 1, " ,");
+ i++;
+ info->flagArrowColorSylinder2++;
+ } else {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ SBREAK;
+ }
SCASE("c") {
if(i+1<argc) {
info->configFile = stringGetNthWord(argv[i+1], 1, " ,");
info->minL = 3; info->flagminL = 0;
info->maxL = 5; info->flagmaxL = 0;
info->delL = 1; info->flagdelL = 0;
- info->fptOutVectorBILD = NULL; info->flagOutVectorBILD = 0;
info->minPhi = 0.0; info->flagminPhi = 0;
info->maxPhi = 359.0; info->flagmaxPhi = 0;
info->delPhi = 45.0; info->flagdelPhi = 0;
info->delPsi = 45.0; info->flagdelPsi = 0;
info->thresZscore = 1.0; info->flagthresZscore = 0;
info->interpMode = 0; info->flaginterpMode = 0;
+ info->fptOutVectorBILD = NULL; info->flagOutVectorBILD = 0;
+ info->ArrowR1 = 0.1; info->flagArrowR1 = 0;
+ info->ArrowR2 = 0.4; info->flagArrowR2 = 0;
+ info->ArrowRho = 0.75; info->flagArrowRho = 0;
+ info->ZoomVector = 1.0; info->flagZoomVector = 0;
+ info->ArrowColorDisk0 = 0.0; info->flagArrowColorDisk0 = 0;
+ info->ArrowColorDisk1 = 1.0; info->flagArrowColorDisk1 = 0;
+ info->ArrowColorDisk2 = 0.0; info->flagArrowColorDisk2 = 0;
+ info->ArrowColorSylinder0 = 1.0; info->flagArrowColorSylinder0 = 0;
+ info->ArrowColorSylinder1 = 0.0; info->flagArrowColorSylinder1 = 0;
+ info->ArrowColorSylinder2 = 0.0; info->flagArrowColorSylinder2 = 0;
info->fptconfigFile = NULL; info->flagconfigFile = 0;
info->mode = 0; info->flagmode = 0;
}
if(info->flagdelL) {
}
- if(info->flagOutVectorBILD) {
- info->fptOutVectorBILD = fileOpen(info->OutVectorBILD, "w");
- }
-
if(info->flagminPhi) {
}
if(info->flaginterpMode) {
}
+ if(info->flagOutVectorBILD) {
+ info->fptOutVectorBILD = fileOpen(info->OutVectorBILD, "w");
+ }
+
+ if(info->flagArrowR1) {
+ }
+
+ if(info->flagArrowR2) {
+ }
+
+ if(info->flagArrowRho) {
+ }
+
+ if(info->flagZoomVector) {
+ }
+
+ if(info->flagArrowColorDisk0) {
+ }
+
+ if(info->flagArrowColorDisk1) {
+ }
+
+ if(info->flagArrowColorDisk2) {
+ }
+
+ if(info->flagArrowColorSylinder0) {
+ }
+
+ if(info->flagArrowColorSylinder1) {
+ }
+
+ if(info->flagArrowColorSylinder2) {
+ }
+
if(info->flagconfigFile) {
info->fptconfigFile = fileOpen(info->configFile, "r");
}
// Direction
FILE* OutVectorBILD;
+ float ZoomVector;
+ float arrowr1;
+ float arrowr2;
+ float arrowrho;
+ float sylinderColor[3];
+ float diskColor[3];
+
avsFileField OutVectorFLD;
} lmrcImageShapeSearchInfo;
//
linfo.OutVectorBILD = info.fptOutVectorBILD;
+ linfo.arrowr1 = info.ArrowR1;
+ linfo.arrowr2 = info.ArrowR2;
+ linfo.arrowrho = info.ArrowRho;
+ linfo.ZoomVector = info.ZoomVector;
+ linfo.sylinderColor[0] = info.ArrowColorSylinder0;
+ linfo.sylinderColor[1] = info.ArrowColorSylinder1;
+ linfo.sylinderColor[2] = info.ArrowColorSylinder2;
+ linfo.diskColor[0] = info.ArrowColorDisk0;
+ linfo.diskColor[1] = info.ArrowColorDisk1;
+ linfo.diskColor[2] = info.ArrowColorDisk2;
+
mrcFileRead(&in, info.In, "in main", 0);
// Sphere
}
}
-
+
+ // BILD
+ if(linfo->OutVectorBILD!=NULL) {
+ float startx, starty, startz;
+ float endx, endy, endz;
+ float zoom;
+
+ startx = (x+in->HeaderStartN.x)*in->HeaderLength.x;
+ starty = (y+in->HeaderStartN.y)*in->HeaderLength.y;
+ startz = (z+in->HeaderStartN.z)*in->HeaderLength.z;
+
+ switch((int)(linfo->shape.ImageFloatImage[k0]+0.5)) {
+ case lmrcImageShapeSearchModeSylinder: {
+ fprintf(linfo->OutVectorBILD, ".color %g %g %g\n", linfo->sylinderColor[0], linfo->sylinderColor[1], linfo->sylinderColor[2]);
+ endx = startx+arrayDataGet2(U, 0, 0)*Wsylinder/100.0*in->HeaderLength.x*linfo->ZoomVector;
+ endy = starty+arrayDataGet2(U, 1, 0)*Wsylinder/100.0*in->HeaderLength.y*linfo->ZoomVector;
+ endz = startz+arrayDataGet2(U, 2, 0)*Wsylinder/100.0*in->HeaderLength.z*linfo->ZoomVector;
+ break;
+ }
+ case lmrcImageShapeSearchModeDisk: {
+ fprintf(linfo->OutVectorBILD, ".color %g %g %g\n", linfo->diskColor[0], linfo->diskColor[1], linfo->diskColor[2]);
+ endx = startx+arrayDataGet2(U, 0, 2)*Wsylinder/100.0*in->HeaderLength.x*linfo->ZoomVector;
+ endy = starty+arrayDataGet2(U, 1, 2)*Wsylinder/100.0*in->HeaderLength.y*linfo->ZoomVector;
+ endz = startz+arrayDataGet2(U, 2, 2)*Wsylinder/100.0*in->HeaderLength.z*linfo->ZoomVector;
+ break;
+ }
+ case lmrcImageShapeSearchModeSphere: {
+ break;
+ }
+ default: {
+ break;
+ }
+ }
+ switch((int)(linfo->shape.ImageFloatImage[k0]+0.5)) {
+ case lmrcImageShapeSearchModeSylinder:
+ fprintf(linfo->OutVectorBILD, ".arrow %g %g %g %g %g %g %g %g %g\n",
+ startx, starty, startz,
+ endx, endy, endz,
+ linfo->arrowr1,
+ linfo->arrowr2,
+ linfo->arrowrho);
+ case lmrcImageShapeSearchModeDisk: {
+ fprintf(linfo->OutVectorBILD, ".arrow %g %g %g %g %g %g %g %g %g\n",
+ startx, starty, startz,
+ endx, endy, endz,
+ linfo->arrowr1,
+ linfo->arrowr2,
+ linfo->arrowrho);
+ break;
+ }
+ default: {
+ break;
+ }
+ }
+
+ }
switch(mode) {
case lmrcImageShapeSearchModeSylinder: {
W = Wsylinder;
[-l[ength] minL (3 ).as(Integer )
maxL (5 ).as(Integer )
delL (1 ).as(Integer ) ] :Optional :Length[pixel]
- [-O[utput]V[ector]BILDOutVectorBILD (NULL ).as(outFile::BILD ) ] :Optional :Output:BILD-vector
[-Phi minPhi (0.0 ).as(Real )
maxPhi (359.0 ).as(Real )
delPhi (45.0 ).as(Real ) ] :Optional :around z-axis[degree]
delPsi (45.0 ).as(Real ) ] :Optional :around x-axis[degree]
[-thres[Zscore] thresZscore (1.0 ).as(Real ) ] :Optional :Zscore
[-interp[olationMode]interpMode (0 ).as(Integer ) ] :Optional :interpMode
+ [-O[utput]V[ector]BILDOutVectorBILD (NULL ).as(outFile::BILD ) ] :Optional :Output:BILD-vector
+ [-arrow[Shape] ArrowR1 (0.1 ).as(Real )
+ ArrowR2 (0.4 ).as(Real )
+ ArrowRho (0.75 ).as(Real ) ] :Optional :ArrowShape
+ [-zoom[Vector] ZoomVector (1.0 ).as(Real ) ] :Optional :Zoom
+ [-arrowColorDisk ArrowColorDisk0 (0.0 ).as(Real )
+ ArrowColorDisk1 (1.0 ).as(Real )
+ ArrowColorDisk2 (0.0 ).as(Real ) ] :Optional :ArrowColorDisk
+ [-arrowColorSylinder ArrowColorSylinder0 (1.0 ).as(Real )
+ ArrowColorSylinder1 (0.0 ).as(Real )
+ ArrowColorSylinder2 (0.0 ).as(Real ) ] :Optional :ArrowColorSylinder
[-c[onfig] configFile (NULL ).as(inFile ) ] :Optional :ConfigurationFile
[-m[ode] mode (0 ).as(Integer ) ] :Optional :Mode
----- Additional Usage -----
-i 1 0 1 0 0 -1x1+1+6.000000 0 0 0 0 0 'nCube' 'Mode' n
-I 1 0 0 1 0 1 -1x1+1+7 ' ' '3' 'minR' Radius[pixel]
-I 1 0 0 1 0 1 -1x1+1+9 ' ' '3' 'minL' Length[pixel]
- -O 1 0 1 0 0 1 -1x1+1+10.500000 ' ' 'OutVectorBILD' 'Output:BILD-vector' OVBILD
- -I 1 0 0 1 0 1 -1x1+1+12 ' ' '0.0' 'minPhi' around z-axis[degree]
- -I 1 0 0 1 0 1 -1x1+1+13 ' ' '0.0' 'minTheta' around x-axis[degree]
- -I 1 0 0 1 0 1 -1x1+1+15 ' ' '0.0' 'minPsi' around x-axis[degree]
- -f 1 0 1 0 0 -1x1+1+16.500000 0 0 1.000000 0 0 0 'thresZscore' 'Zscore' thres
- -i 1 0 1 0 0 -1x1+1+18.000000 0 0 0 0 0 'interpMode' 'interpMode' interp
- -I 1 0 1 0 0 1 -1x1+1+19.500000 ' ' 'configFile' 'ConfigurationFile' c
- -i 1 0 1 0 0 -1x1+1+21.000000 0 0 0 0 0 'mode' 'Mode' m
+ -I 1 0 0 1 0 1 -1x1+1+10 ' ' '0.0' 'minPhi' around z-axis[degree]
+ -I 1 0 0 1 0 1 -1x1+1+12 ' ' '0.0' 'minTheta' around x-axis[degree]
+ -I 1 0 0 1 0 1 -1x1+1+13 ' ' '0.0' 'minPsi' around x-axis[degree]
+ -f 1 0 1 0 0 -1x1+1+15.000000 0 0 1.000000 0 0 0 'thresZscore' 'Zscore' thres
+ -i 1 0 1 0 0 -1x1+1+16.500000 0 0 0 0 0 'interpMode' 'interpMode' interp
+ -O 1 0 1 0 0 1 -1x1+1+18.000000 ' ' 'OutVectorBILD' 'Output:BILD-vector' OVBILD
+ -I 1 0 0 1 0 1 -1x1+1+19 ' ' '0.1' 'ArrowR1' ArrowShape
+ -f 1 0 1 0 0 -1x1+1+21.000000 0 0 1.000000 0 0 0 'ZoomVector' 'Zoom' zoom
+ -I 1 0 0 1 0 1 -1x1+1+22 ' ' '0.0' 'ArrowColorDisk0' ArrowColorDisk
+ -I 1 0 0 1 0 1 -1x1+1+24 ' ' '1.0' 'ArrowColorSylinder0' ArrowColorSylinder
+ -I 1 0 1 0 0 1 -1x1+1+25.500000 ' ' 'configFile' 'ConfigurationFile' c
+ -i 1 0 1 0 0 -1x1+1+27.000000 0 0 0 0 0 'mode' 'Mode' m
-E
-E
-E
exec:
@echo "----- Execution Check -----"
- time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-sylinder.bin -o data/test-sylinder.syl -Shape data/test-sylinder.shape0 -n 9 -r 3 5 1 -l 5 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 0 -thres 0.5
- time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-sylinder.bin -o data/test-sylinder.disk -Shape data/test-sylinder.shape1 -n 9 -r 6 6 1 -l 3 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 1 -thres 0.5
+ time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-sylinder.bin -o data/test-sylinder.syl -Shape data/test-sylinder.shape0 -n 9 -r 3 5 1 -l 5 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 0 -thres 0.5 -OVBILD data/test-sylinder.sylvec.bild
+ time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-sylinder.bin -o data/test-sylinder.disk -Shape data/test-sylinder.shape1 -n 9 -r 6 6 1 -l 3 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 1 -thres 0.5 -OVBILD data/test-sylinder.diskvec.bild
exec2:
- time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-disk.bin -o data/test-disk.disk -Shape data/test-disk.shape0 -n 6 -r 6 6 1 -l 3 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 1 -thres 0.5
- time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-disk.bin -o data/test-disk.syl -Shape data/test-disk.shape1 -n 6 -r 3 5 1 -l 5 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 0 -thres 0.5
+ time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-disk.bin -o data/test-disk.disk -Shape data/test-disk.shape0 -n 6 -r 6 6 1 -l 3 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 1 -thres 0.5 -OVBILD data/test-disk.sylvec.bild
+ time ../$(OSTYPE)/$(OBJECTNAME) -i data/test-disk.bin -o data/test-disk.syl -Shape data/test-disk.shape1 -n 6 -r 3 5 1 -l 5 5 1 -Phi 0 359 45 -Theta 0 179 45 -Psi 0 0 90 -m 0 -thres 0.5 -OVBILD data/test-disk.diskvec.bild
@echo "----- Calc check -----"
exec3:
fprintf(stderr, " [-n[Cube] nCube (0 ).as(Integer ) ] :Optional :Mode\n");
fprintf(stderr, " [-r[adius] minR (3 ).as(Integer ) \n maxR (5 ).as(Integer ) \n delR (1 ).as(Integer ) ] :Optional :Radius[pixel]\n");
fprintf(stderr, " [-l[ength] minL (3 ).as(Integer ) \n maxL (5 ).as(Integer ) \n delL (1 ).as(Integer ) ] :Optional :Length[pixel]\n");
- fprintf(stderr, " [-O[utput]V[ector]BILDOutVectorBILD (NULL ).as(outFile::BILD ) ] :Optional :Output:BILD-vector\n");
fprintf(stderr, " [-Phi minPhi (0.0 ).as(Real ) \n maxPhi (359.0 ).as(Real ) \n delPhi (45.0 ).as(Real ) ] :Optional :around z-axis[degree]\n");
fprintf(stderr, " [-Theta minTheta (0.0 ).as(Real ) \n maxTheta (359.0 ).as(Real ) \n delTheta (45.0 ).as(Real ) ] :Optional :around x-axis[degree]\n");
fprintf(stderr, " [-Psi minPsi (0.0 ).as(Real ) \n maxPsi (350.0 ).as(Real ) \n delPsi (45.0 ).as(Real ) ] :Optional :around x-axis[degree]\n");
fprintf(stderr, " [-thres[Zscore] thresZscore (1.0 ).as(Real ) ] :Optional :Zscore\n");
fprintf(stderr, " [-interp[olationMode]interpMode (0 ).as(Integer ) ] :Optional :interpMode\n");
+ fprintf(stderr, " [-O[utput]V[ector]BILDOutVectorBILD (NULL ).as(outFile::BILD ) ] :Optional :Output:BILD-vector\n");
+ fprintf(stderr, " [-arrow[Shape] ArrowR1 (0.1 ).as(Real ) \n ArrowR2 (0.4 ).as(Real ) \n ArrowRho (0.75 ).as(Real ) ] :Optional :ArrowShape\n");
+ fprintf(stderr, " [-zoom[Vector] ZoomVector (1.0 ).as(Real ) ] :Optional :Zoom\n");
+ fprintf(stderr, " [-arrowColorDisk ArrowColorDisk0 (0.0 ).as(Real ) \n ArrowColorDisk1 (1.0 ).as(Real ) \n ArrowColorDisk2 (0.0 ).as(Real ) ] :Optional :ArrowColorDisk\n");
+ fprintf(stderr, " [-arrowColorSylinder ArrowColorSylinder0 (1.0 ).as(Real ) \n ArrowColorSylinder1 (0.0 ).as(Real ) \n ArrowColorSylinder2 (0.0 ).as(Real ) ] :Optional :ArrowColorSylinder\n");
fprintf(stderr, " [-c[onfig] configFile (NULL ).as(inFile ) ] :Optional :ConfigurationFile\n");
fprintf(stderr, " [-m[ode] mode (0 ).as(Integer ) ] :Optional :Mode\n");
additionalUsage();