untitled

Similar documents
TITLE

TITLE

double float

6-1

Contents VTK

超初心者用

新版明解C言語 実践編

-2-

program.dvi

(3D) で高解像度なため情報量は膨大である この膨大なデータを3Dで表示し 画像のズーム 平行移動 回転 長さを測定するメジャー等の機能を提供することが求められる 前述した治療計画ソフトウェアを始めとし 粒子線治療装置のような医療の現場で使用されるアプリケーションソフトウェアには 概ねそのユーザイ

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

新・明解C言語 実践編

K227 Java 2

Condition DAQ condition condition 2 3 XML key value

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

第7章 レンダリング

第7章 レンダリング

新コンフィギュレータのフレームワークについて


解きながら学ぶJava入門編

void hash1_init(int *array) int i; for (i = 0; i < HASHSIZE; i++) array[i] = EMPTY; /* i EMPTY */ void hash1_insert(int *array, int n) if (n < 0 n >=

ex01.dvi

‚æ4›ñ

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

Java演習(4) -- 変数と型 --

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l


掲示用ヒート表 第34回 藤沢市長杯 2017

3.1 stdio.h iostream List.2 using namespace std C printf ( ) %d %f %s %d C++ cout cout List.2 Hello World! cout << float a = 1.2f; int b = 3; cout <<

2008 ( 13 ) C LAPACK 2008 ( 13 )C LAPACK p. 1

6 6.1 sound_wav_files flu00.wav.wav 44.1 khz 1/44100 spwave Text with Time spwave t T = N t N 44.1 khz t = 1 sec j t f j {f 0, f 1, f 2,, f N 1

第1章

p = 1, 2, cos 2n + p)πj = cos 2nπj 2n + p)πj, sin = sin 2nπj 7.1) f j = a ) 0 + a p + a n+p cos 2nπj p=1 p=0 1 + ) b n+p p=0 sin 2nπj 1 2 a 0 +

第3章 OpenGL の基礎

第3章 OpenGL の基礎

1


untitled

橡Taro9-生徒の活動.PDF

j x j j j + 1 l j l j = x j+1 x j, n x n x 1 = n 1 l j j=1 H j j + 1 l j l j E

ValueHolder... 9 Customer.java Oracle TopLink 10g(10.1.3) È Volume3 2


★結果★ 藤沢市長杯 掲示用ヒート表

untitled

2 n ImageJ (intensity) ImageJ Bit

2

RubyKaigi2009 COBOL

TopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç..

untitled

For_Beginners_CAPL.indd

<90F496CA30305F955C8E862E6169>

matrix util program bstat gram schmidt

ex01.dvi

2 1 Web Java Android Java 1.2 6) Java Java 7) 6) Java Java (Swing, JavaFX) (JDBC) 7) OS 1.3 Java Java

C言語によるアルゴリズムとデータ構造

Q&A集

STARTプログラム.indd

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

9 8 7 (x-1.0)*(x-1.0) *(x-1.0) (a) f(a) (b) f(a) Figure 1: f(a) a =1.0 (1) a 1.0 f(1.0)

I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

yacc.dvi

:30 12:00 I. I VI II. III. IV. a d V. VI

mbed_library_study_meeting_v1.0.key

untitled

明解Javaによるアルゴリズムとデータ構造

r07.dvi

ohp07.dvi

新・明解Java入門

/* sansu1.c */ #include <stdio.h> main() { int a, b, c; /* a, b, c */ a = 200; b = 1300; /* a 200 */ /* b 200 */ c = a + b; /* a b c */ }

MQTT V3.1 プロトコル仕様

(STL) STL 1 (deta structure) (algorithm) (deta structure) 2 STL STL (Standard Template Library) 2.1 STL STL ( ) vector<int> x; for(int i = 0; i < 10;

プログラミング基礎

r3.dvi

r1.dvi


untitled

untitled

untitled

卒 業 研 究 報 告.PDF

1 4 2 EP) (EP) (EP)

C

明解Java入門編

コンピュータグラフィックス - 第4回 色彩の表現

Microsoft Word - no15.docx

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

HABOC manual

( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

表紙.PDF

untitled


新築_PDF用

untitled

表紙a


AFASパンフ表.ai

.....w...j...[.X55..

cover_jinzai_21

fukushi-yotsukaido113

untitled

Transcription:

2 VTK takata@ 1 G401 gnuplot 2 3 x, y, ), ) Version3.8 2 1

G401 vtk 3 CMakeLists.txt PROJECT (ProjectName) INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) IF (USE_VTK_FILE) INCLUDE(${USE_VTK_FILE}) ENDIF (USE_VTK_FILE) ADD_EXECUTABLE(ObjectName ProgramFile) TARGET_LINK_LIBRARIES(ObjectName Libraries) VTK 4 2

URL http://www.vtk.org/doc/release/4.2/html/ Alphabetical List CVS logs(cvsweb):.cxx(/graphics/vtk???.cxx).h(/graphics/vtk???.h) vtkgraphics 5 Vtk vtkdataset vtkimagedata vtkpointset vtkrectilinear vtkstructuredpoints vtkpolydata 6 3

vtkstructuredpoints 3 x,y,z vtkrectilinear 3 x,y,z 7 vtkstructuredgrid vtkpolydata 8 4

(PointData) or (CellData) PointData CellData SvalarData VectorData TensorData FieldData 9 3 x1 y1 z1 x2 y2 z2 xn yn zn class vtkpolydata; class vtkpoints; class vtkidlist; void AddLineToPolyData(vtkPolyData *pdata,char *fname){ double x,y,z; int newflg=0; char buffer[1000]; vtkidlist *pntids=vtkidlist::new(); vtkpoints *pnts=pdata- >GetPoints(); if(pnts==null){ pnts=vtkpoints::new(); pdata->allocate(); newflg=1; } } FILE *fp=fopen(fname,"r"); while( fgets(buffer, BUFFER_SIZE, fp) ){ sscanf(buffer," %f %f %f", &x,&y,&z); pntids->insertnextid(pnts- >InsertNextPoint(x,y,z)); } fclose(fp); pdata->setpoints(pnts); pdata->insertnextcell (VTK_POLY_LINE,pntids); pntids->delete(); if(newflg==1) pnts->delete(); 10 5

VTK DataFile Version 1.0 (1) Volume example (2) ASCII (3) DATASET STRUCTURED_POINTS (4) DIMENSIONS 3 4 6 (5) ORIGIN 0 0 0 (6) SPACING 1 1 1 (7) POINT_DATA 72 (8) SCALARS volume_scalars unsigned_char 1 (9) LOOKUP_TABLE default (10) 0 0 0 0 0 0 0 0 0 0 0 50 (11) 0 5 10 15 20 25 25 20 15 10 5 0 0 10 20 30 40 50 50 40 30 20 10 50 0 10 20 30 40 50 50 40 30 20 10 50 0 5 10 15 20 25 25 20 15 10 5 0 0 0 0 0 0 0 0 0 0 0 0 50 (1) (2) (3) ASCII or BINARY (4) (5) (X, Y, Z) (6) (X, Y, Z) (7) (X, Y, Z) (8) (9) (10) LookUpTable (11) ASCII http://www.vtk.org/pdf/file-formats.pdf 11 vtkrenderer *ren = vtkrenderer::new(); vtkrenderwindow *renwin = vtkrenderwindow::new(); renwin->addrenderer(ren); vtkrenderwindowinteractor *iren = vtkrenderwindowinteractor::new(); Iren->SetRenderwindow(renWin); ren->addactor(???); // ren->addvolume(???); renwin->setsize(600, 600); renwin->render(); iren->initialize(); renwin->render(); iren->start(); VTK 12 6

Actor vtkmapper*->scalarvisibilityoff(); vtkactor*->getproperty() ->SetColor(red, green, blue); vtkrenderer* ->SetBackground(red, green, blue) 13 VTK vtkwindowtoimagefilter *w2i=vtkwindowtoimagefilter::new(); vtkjpegwriter *writer=vtkjpegwriter::new(); JPEG *JPEG* w2i->setinput(vtkrenderwindow*); writer->setinput(w2i->getoutput()); writer->setfilename(char *); vtkrenderwindow*->render(); w2i->update(); writer->write(); 14 7

(Color mapping) (2D Contour) (3D Contour) (Cutting) 15 Lookup Table (Max, Min) Si Si Min colori = lut Max Min 16 8

Pipeline: vtkdatasetreader vtkimagedatageometryfilter Actor vtkwarpscalar ReleaseDataFlagOn(); vtklookuptable SetNormal(0,0,1); SetNumberOfColors(int); UseNormalOn(); SetHueRange(double, double); ReleaseDataFlagOn(); SetSaturationRange(double, double); SetValueRange(double, double); Build(); SetVisibilityOn(); SetLookupTable(vtkLookupTable*) vtkwarpscalar* ->Update(); SetScalarRange(vtkWarpScalar*->GetOutput()->GetScalarRange(); 17 LookupTable SetNumberOfColors(int); Int SetHueRange(double, double); 0.6 0.0: SetSaturationRange(double, double); 1 SetValueRange(double, double); 1 18 9

Pipeline: (2D Contour) vtkdatasetreader vtkimagedatageometryfilter vtkwarpscalar ReleaseDataFlagOn(); SetNormal(0,0,1); UseNormalOn(); ReleaseDataFlagOn(); vtkcontourfilter SetValue(int, double); Actor1 Actor2 19 Pipeline: (3D Contour) vtkstructuredgridreader vtkstructuredgridoutlinefilter ScalarVisibilityOn(); vtkcontourfilter SetValue(int, double); ScalarVisibilityOn(); Actor1 Actor2 20 10

vtkcontourfilter vtkdataset vtkpolydata GenerateValues(int, double[2]) int: double[2]: (vtkwarpscale*->getoutput()->getscalarrange()); SetValue(int, double) int: double: GetNumberOfContours() 21 Pipeline: vtkstructuredgridreader vtkstructuredgridoutlinefilter vtkplane SetOrigin(x, y, z) SetNormal(vector x, vector y, vector z ) vtkcutter SetCutFunction(vtkPlane*) Actor1 Actor2 22 11

Pipeline: vtkstructuredgridreader vtkstructuredgridoutlinefilter vtkstructuredgridgeometryfilter SetExtent(double, double, double, double, double, double) Actor1 Actor2 23 Pipeline: Glyphing vtkstructured GridReader vtkstructured GridOutlineFilter Actor1 vtkmaskpoints vtkglyph3d SetOnRatio(50); RandomModeOn(); Update(); Vtk???Source Setsource(vtk???Source*->GetOutput()); scalingon(); SetScaleModeToScaleByScalar(); SetColorModeToColorByScalar(); SetScaleFactor(2); SetRange(vtkMaskPoints*->GetOutput() ->GetScalarRange()) ScalarVisibilityOn(); SetScalarRange(vtkMaskPoints* ->GetOutput()->GetScalarRange()); 24 Actor2 12

vtkmaskpoints int SetOffset(int) int 1 SetOnRatio(int) RandomModeOn(), RandomModeOff() SetMaximumNumberOfPoints(int) 25 vtkglyph3d SetSource(vtkPolyData*) ScalingOn() ScalingOff() SetScaleModeToScaleByScalar SetScaleModeToScaleByVector SetColorModeToColorByScalar SetColorModeToColorByVector float SetScaleFactor(float) SetRange(float[2]) 26 13

vtkarrowsource vtkconesource vtkspheresource 27 Pipeline: vtkstructured GridReader vtkstructured GridOutlineFilter vtkextractgrid SetVOI(int, int, int, int, int, int); SetSamplerate (int, int, int); IncludeBoundaryOn(); vtkrungekutta4 vtkstreamline SetSource (vtkextractgrid*); SetIntegrator (vtkrungekutta4*); SetStepLength(float); Actor1 Actor3 Actor2 GetProperty() ->SetRepresentationToWireframe() 28 14

Pipeline: vtkstructured PointsReader vtkoutlinefilter Actor1 vtkvolumeraycastmapper vtkpiecewisefunction SetColor(vtkTransforFunction*) SetScalarOpacity(vtkPiecewiseFunction*) ShadeOn() SetInterpolationTypeToLinear() SetProperty(vtkVolumeProperty*) Actor2 29 AddVolume(vtkVolume*) vtkvolume vtkvolumeraycastcompositefunction SetVolumeRayCastFunction (vtkvolumeraycastcompositefunction*) AddPoint(int, double) vtkvolumeproperty vtktransferfunction AddRGBPoint (double, double, double, double) vtkpiecewisefunction AddPoint(double vlaue, trans) double value: double trans: vtkcolortransferfunction AddRGBPoint(double value, red, green, blue) HSV AddHSVPoint(double, H, S, V) 30 15

vtkimageshiftscale vtkstructuredpointsreader* vtkraycastmapper* SetShift( or 0) SetScale(Scale/ SetOutputScalarTypeToUnsignedChar() 31 http://www.vtk.org 3D http://donguri.sakura.ne.jp/~shock8/3d/vtk_index.html http://www.kitware.com/products/vtktextbook.html The Visualization ToolKit An Object-oriented approach to 3D Graphics VTK User s Guide 32 16