In file t-interp.
This commit is contained in:
parent
f5e586263f
commit
4545be6c88
|
|
@ -34,7 +34,7 @@ void loadData(float* d_data, const int idx, const int timestep) {
|
|||
for (int i = 0; i < VOLUME_WIDTH * VOLUME_HEIGHT * VOLUME_DEPTH; i++) {
|
||||
hostVolume[i] = h_data[i + timestep*VOLUME_DEPTH*VOLUME_HEIGHT*VOLUME_WIDTH];
|
||||
// Discard missing values
|
||||
if (h_data[i + 0*VOLUME_DEPTH*VOLUME_HEIGHT*VOLUME_WIDTH] + epsilon >= infty) hostVolume[i] = -infty;
|
||||
if (h_data[i + timestep*VOLUME_DEPTH*VOLUME_HEIGHT*VOLUME_WIDTH] + epsilon >= infty) hostVolume[i] = -infty;
|
||||
}
|
||||
std::cout << "hi\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -169,7 +169,9 @@ void Widget::tick(double fps) {
|
|||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::Text(this->dateString);
|
||||
ImGui::DragInt("time step to load", &this->timestep, 1, 0, 3, "%d", ImGuiSliderFlags_AlwaysClamp);
|
||||
if (ImGui::DragInt("time step to load", &this->timestep, 1, 0, 3, "%d", ImGuiSliderFlags_AlwaysClamp)) {
|
||||
this->dateChanged = true;
|
||||
}
|
||||
ImGui::DragInt("Samples per pixel", &this->samplesPerPixel, 1, 1, 16, "%d", ImGuiSliderFlags_AlwaysClamp);
|
||||
if (ImGui::Button("Save render")) this->saveImage = true;
|
||||
ImGui::End();
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ public:
|
|||
bool dateChanged;
|
||||
bool saveImage;
|
||||
int date;
|
||||
int timestep;
|
||||
|
||||
void tick(double fps);
|
||||
void render();
|
||||
|
|
@ -34,7 +35,6 @@ private:
|
|||
ImGuiIO io;
|
||||
char *dateString;
|
||||
int samplesPerPixel;
|
||||
int timestep;
|
||||
|
||||
// transfer function controls
|
||||
int tfComboSelected;
|
||||
|
|
|
|||
Loading…
Reference in New Issue