Geant4  v4-10.4-release
G4ViewParameters.cc 파일 참조
#include <sstream>
#include "G4ViewParameters.hh"
#include "G4VisManager.hh"
#include "G4VPhysicalVolume.hh"
#include "G4UnitsTable.hh"
#include "G4SystemOfUnits.hh"
#include "G4ios.hh"

이 파일의 소스 코드 페이지로 가기

## 매크로

#define INTERPOLATE(param)

#define INTERPOLATEUNITVECTOR(vector)

#define INTERPOLATEVECTOR(vector)

#define INTERPOLATEPOINT(point)

#define INTERPOLATECOLOUR(colour)

#define CONTINUITY(quantity)

#define INTERPOLATEPLANE(plane)

## 함수

std::ostream & operator<< (std::ostream &os, const G4ViewParameters::DrawingStyle &style)

std::ostream & operator<< (std::ostream &os, const G4ViewParameters &v)

## 매크로 문서화

 #define CONTINUITY ( quantity )
값:
continuous = false; \
/* This follows the logic of the INTERPOLATE macro above; see comments therein */ \
if (i == 0) { \
if (v[1].quantity == v[0].quantity) { \
if (n == 1) continuous = true; \
else if (v[2].quantity == v[0].quantity) \
continuous = true; \
} \
} else if (i >= n - 1) { \
if (v[i+1].quantity == v[i].quantity) { \
if (n == 1) continuous = true; \
else if (v[i+1].quantity == v[i-1].quantity) \
continuous = true; \
} \
} else { \
if (v[i-1].quantity == v[i].quantity && \
v[i+1].quantity == v[i].quantity && \
v[i+2].quantity == v[i].quantity) \
continuous = true; \
}
if(nlines<=0)
Char_t n[5]

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

 #define INTERPOLATE ( param )
값:
/* This works out the interpolated param in i'th interval */ \
/* Assumes n >= 1 */ \
if (i == 0) { \
/* First interval */ \
mi = v[1].param - v[0].param; \
/* If there is only one interval, make start and end slopes equal */ \
/* (This results in a linear interpolation) */ \
if (n == 1) mi1 = mi; \
/* else the end slope of the interval takes account of the next waypoint along */ \
else mi1 = 0.5 * (v[2].param - v[0].param); \
} else if (i >= n - 1) { \
/* Similarly for last interval */ \
mi1 = v[i+1].param - v[i].param; \
/* If there is only one interval, make start and end slopes equal */ \
if (n == 1) mi = mi1; \
/* else the start slope of the interval takes account of the previous waypoint */ \
else mi = 0.5 * (v[i+1].param - v[i-1].param); \
} else { \
/* Full Catmull-Rom slopes use previous AND next waypoints */ \
mi = 0.5 * (v[i+1].param - v[i-1].param); \
mi1 = 0.5 * (v[i+2].param - v[i ].param); \
} \
real = h00 * v[i].param + h10 * mi + h01 * v[i+1].param + h11 * mi1;
TH1F * h10
if(nlines<=0)
TH1F * h11
Char_t n[5]

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

 #define INTERPOLATECOLOUR ( colour )
값:
INTERPOLATE(colour.GetRed()); red = real; \
INTERPOLATE(colour.GetGreen()); green = real; \
INTERPOLATE(colour.GetBlue()); blue = real; \
INTERPOLATE(colour.GetAlpha()); alpha = real;
#define INTERPOLATE(param)
Definition: test07.cc:36
Definition: test07.cc:36
static const G4double alpha

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

 #define INTERPOLATEPLANE ( plane )
값:
INTERPOLATE(plane.a()); a = real; \
INTERPOLATE(plane.b()); b = real; \
INTERPOLATE(plane.c()); c = real; \
INTERPOLATE(plane.d()); d = real;
#define INTERPOLATE(param)
std::vector< ExP01TrackerHit * > a
Definition: ExP01Classes.hh:33
Float_t d

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

 #define INTERPOLATEPOINT ( point )
값:
INTERPOLATE(point.x()); x = real; \
INTERPOLATE(point.y()); y = real; \
INTERPOLATE(point.z()); z = real;
Float_t x
Definition: compare.C:6
#define INTERPOLATE(param)
Float_t y
Definition: compare.C:6
Double_t z

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

 #define INTERPOLATEUNITVECTOR ( vector )
값:
INTERPOLATE(vector.x()); x = real; \
INTERPOLATE(vector.y()); y = real; \
INTERPOLATE(vector.z()); z = real;
Float_t x
Definition: compare.C:6
#define INTERPOLATE(param)
Float_t y
Definition: compare.C:6
Double_t z

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

 #define INTERPOLATEVECTOR ( vector )
값:
INTERPOLATE(vector.x()); x = real; \
INTERPOLATE(vector.y()); y = real; \
INTERPOLATE(vector.z()); z = real;
Float_t x
Definition: compare.C:6
#define INTERPOLATE(param)
Float_t y
Definition: compare.C:6
Double_t z

다음에 의해서 참조됨 : G4ViewParameters::CatmullRomCubicSplineInterpolation().

## 함수 문서화

 std::ostream& operator<< ( std::ostream & os, const G4ViewParameters::DrawingStyle & style )

G4ViewParameters.cc 파일의 810 번째 라인에서 정의되었습니다.